Functions that control pin-based debug utilities.
More...
Functions that control pin-based debug utilities.
void debug_pin_clear |
( |
const unsigned int |
pin | ) |
|
Clear the selected line.
- Parameters
-
[in] | pin | Line to be cleared. |
void debug_pin_error_handler |
( |
uint32_t |
error_code, |
|
|
uint32_t |
line_num, |
|
|
const uint8_t * |
p_file_name |
|
) |
| |
Function for error handling, which is called when an error has occurred.
- Parameters
-
[in] | error_code | Error code supplied to the handler. |
[in] | line_num | Line number where the handler is called. |
[in] | p_file_name | Pointer to the file name. |
void debug_pin_flag |
( |
const unsigned int |
pin, |
|
|
bool |
flag |
|
) |
| |
Set a line according to a flag.
- Parameters
-
[in] | pin | Line to be set. |
[in] | flag | Flag to be set. |
void debug_pin_pulse |
( |
const unsigned int |
pin | ) |
|
Signal 1 µs pulse on the selected line.
- Parameters
-
[in] | pin | Line to be pulsed. |
void debug_pin_send |
( |
const uint32_t |
word, |
|
|
const uint8_t |
bits |
|
) |
| |
Function for displaying an error code on the scope.
- Warning
- Bits are sent MSB first with data sampling on falling clock and positive frame signal.
- Parameters
-
[in] | word | Word to be sent. |
[in] | bits | Word length in bits (1-32). |
void debug_pin_set |
( |
const unsigned int |
pin | ) |
|
Set the selected line.
- Parameters
-
void debug_pin_toggle |
( |
const unsigned int |
pin | ) |
|
Toggle the selected line.
- Parameters
-
[in] | pin | Line to be toggled. |