Initializes the debouncer module.
void tbouncer_init( uint8_t task_num_cat, sched_time poll_delay, uint8_t a_mask, uint8_t b_mask, uint8_t c_mask, uint8_t d_mask, sched_catflags notify_cats, uint8_t invoke_mask, uint8_t invoke_st )
Shuts down the debouncer module.
void tbouncer_shutdown( void )
Initiates message transmission.
ttlv_state ttlv_begin_xmit( void )
Finishes message reception.
ttlv_state ttlv_finish_recv( void )
Retrieves data bytes from the start of the sequence of incoming bytes in the receive buffer.
uint8_t ttlv_get_bytes( uint8_t n, uint8_t * data_p )
Initializes the TTLV communication module.
void ttlv_init( uint8_t task_num_cat, uint16_t ubrr, uint8_t parity, uint8_t u2x, ttlv_mode mode, sched_catflags xmit_task_cats, sched_catflags recv_task_cats )
Appends a data byte to the sequence of outgoing bytes in the transmit buffer.
uint8_t ttlv_put_byte( uint8_t data )
Appends data bytes to the sequence of outgoing bytes in the transmit buffer.
uint8_t ttlv_put_bytes( uint8_t n, const uint8_t * data_p )
Retrieves the data bytes of a received message and finishes message reception.
ttlv_state ttlv_recv( uint8_t * data_p )
The type of pointers to functions that perform some update operation on a specified logical register.
typedef ttlv_result ( * ttlv_reg_manipulator )(ttlv_reg_index index, ttlv_reg_value *value_p)
The type of pointers to functions that set the value of a specified logical register.
typedef ttlv_result ( * ttlv_reg_setter )(ttlv_reg_index index, ttlv_reg_value value)
The type of pointers to functions that perform some update operation on a specified logical register pair.
typedef ttlv_result ( * ttlv_regpair_manipulator )(ttlv_reg_index index, ttlv_regpair_value *value_p)
The type of pointers to functions that set the value of a specified logical register pair.
typedef ttlv_result ( * ttlv_regpair_setter )(ttlv_reg_index index, ttlv_regpair_value value)
Shuts down the TTLV communication module.
void ttlv_shutdown( void )
Initiates message transmission or clears the transmit buffer.
ttlv_state ttlv_try_begin_xmit( void )
Attempts to append all the specified data bytes to the sequence of outgoing bytes in the transmit buffer.
uint8_t ttlv_try_put_bytes( uint8_t n, const uint8_t * data_p )
Removes uncommitted data bytes from the end of the sequence of outgoing bytes in the transmit buffer.
uint8_t ttlv_unput_bytes( uint8_t n )
Initiates transmission of a specified message or clears the transmit buffer.
ttlv_state ttlv_xmit( uint8_t dstadr, uint8_t type, uint8_t length, const uint8_t * data_p )
Convenience function that uses ttlv_xmit to transmit a TTLV_MSG_T_INM_RESULT message.
ttlv_state ttlv_xmit_inm_result( ttlv_result res )
Convenience function that uses ttlv_xmit to transmit a message.
ttlv_state ttlv_xmit_response( uint8_t type, uint8_t length, const uint8_t * data_p )
Convenience function that uses ttlv_xmit to transmit a TTLV_MSG_T_RESULT message.
ttlv_state ttlv_xmit_result( ttlv_result res )
Uses the watchdog timer to trigger a reset of the MCU.
void watchdog_reset_mcu( void ) __attribute__ ((noreturn))