Smart Remote 3 nRF52 v1.2
Functions
Pin-based debug utilities

Functions that control pin-based debug utilities. More...

Functions

void debug_pin_clear (const unsigned int pin)
 Clear the selected line. More...
 
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. More...
 
void debug_pin_flag (const unsigned int pin, bool flag)
 Set a line according to a flag. More...
 
void debug_pin_init (void)
 Initialize the debug lines and startup pulse.
 
void debug_pin_pulse (const unsigned int pin)
 Signal 1 µs pulse on the selected line. More...
 
void debug_pin_send (const uint32_t word, const uint8_t bits)
 Function for displaying an error code on the scope. More...
 
void debug_pin_set (const unsigned int pin)
 Set the selected line. More...
 
void debug_pin_toggle (const unsigned int pin)
 Toggle the selected line. More...
 

Detailed Description

Functions that control pin-based debug utilities.

Function Documentation

void debug_pin_clear ( const unsigned int  pin)

Clear the selected line.

Parameters
[in]pinLine 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_codeError code supplied to the handler.
[in]line_numLine number where the handler is called.
[in]p_file_namePointer to the file name.
void debug_pin_flag ( const unsigned int  pin,
bool  flag 
)

Set a line according to a flag.

Parameters
[in]pinLine to be set.
[in]flagFlag to be set.
void debug_pin_pulse ( const unsigned int  pin)

Signal 1 µs pulse on the selected line.

Parameters
[in]pinLine 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]wordWord to be sent.
[in]bitsWord length in bits (1-32).
void debug_pin_set ( const unsigned int  pin)

Set the selected line.

Parameters
[in]pinLine to be set.
void debug_pin_toggle ( const unsigned int  pin)

Toggle the selected line.

Parameters
[in]pinLine to be toggled.

Documentation feedback | Developer Zone | Subscribe | Updated