Debounced pin values for I/O port A.
extern uint8_t tbouncer_a
Pin change flags for I/O port A.
extern uint8_t tbouncer_a_diff
Pin change notification bit mask for I/O port A.
extern uint8_t tbouncer_a_mask
Previous debounced pin values for I/O port A.
extern uint8_t tbouncer_a_prev
Debounced pin values for I/O port B.
extern uint8_t tbouncer_b
Pin change flags for I/O port B.
extern uint8_t tbouncer_b_diff
Pin change notification bit mask for I/O port B.
extern uint8_t tbouncer_b_mask
Previous debounced pin values for I/O port B.
extern uint8_t tbouncer_b_prev
Debounced pin values for I/O port C.
extern uint8_t tbouncer_c
Pin change flags for I/O port C.
extern uint8_t tbouncer_c_diff
Pin change notification bit mask for I/O port C.
extern uint8_t tbouncer_c_mask
Previous debounced pin values for I/O port C.
extern uint8_t tbouncer_c_prev
Debounced pin values for I/O port D.
extern uint8_t tbouncer_d
Pin change flags for I/O port D.
extern uint8_t tbouncer_d_diff
Pin change notification bit mask for I/O port D.
extern uint8_t tbouncer_d_mask
Previous debounced pin values for I/O port D.
extern uint8_t tbouncer_d_prev
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 )
Contains a TCSB bit mask.
extern uint8_t tbouncer_invoke_mask
Contains a TCSB bit pattern.
extern uint8_t tbouncer_invoke_st
Shuts down the debouncer module.
void tbouncer_shutdown( void )
Contains a set of task category bit flags.
extern sched_catflags tbouncer_task_cats
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 )
Provides byte access to the ttlv_s_header struct h via the byte array b.
typedef union ttlv_header
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 )
Provides byte access to the ttlv_s_inm_header struct h via the byte array b.
typedef union ttlv_inm_header
The type of mode flags for the TTLV module.
typedef uint8_t ttlv_mode
Contains a set of mode flags (ttlv_mode) that represent the current operation mode of the TTLV module.
extern ttlv_mode ttlv_mode_flags
Specifies the format of an identifier-value pair for a logical register, with an INM message ID appended.
typedef struct __attribute__ ( (__packed__) ) ttlv_msg_inm_reg
Specifies the format of an identifier-value pair for a logical register pair, with an INM message ID appended.
typedef struct __attribute__ ( (__packed__) ) ttlv_msg_inm_regpair
Specifies the format of a generic INM response message.
typedef struct __attribute__ ( (__packed__) ) ttlv_msg_inm_result
Specifies the format of an identifier-value pair for a logical register.
typedef struct __attribute__ ( (__packed__) ) ttlv_msg_reg
Specifies the format of an identifier-value pair for a logical register pair.
typedef struct __attribute__ ( (__packed__) ) ttlv_msg_regpair
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 )
Contains the most recently received ttlv_header.
extern ttlv_header ttlv_recv_header
Contains the most recently received ttlv_inm_header.
extern ttlv_inm_header ttlv_recv_inm_header
A ttlv_state representing the current state of the TTLV receiver.
extern ttlv_state ttlv_recv_state
Contains a set of task category bit flags (sched_catflags).
extern sched_catflags ttlv_recv_task_cats
The type of TTLV logical register identifiers.
typedef uint8_t ttlv_reg_index
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 TTLV logical register values.
typedef uint8_t ttlv_reg_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)
The type of TTLV logical register pair values.
typedef uint16_t ttlv_regpair_value
The type of TTLV result codes.
typedef uint8_t ttlv_result
Specifies the byte format of a TLV header.
typedef struct __attribute__ ( (__packed__) ) ttlv_s_header
Specifies the byte format of an INM message header.
typedef struct __attribute__ ( (__packed__) ) ttlv_s_inm_header
Shuts down the TTLV communication module.
void ttlv_shutdown( void )
The type of state codes for the TTLV module.
typedef uint8_t ttlv_state
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 )
Contains the ttlv_header to transmit.
extern ttlv_header ttlv_xmit_header
Contains the ttlv_inm_header to transmit.
extern ttlv_inm_header ttlv_xmit_inm_header
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 )
A ttlv_state representing the current state of the TTLV transmitter.
extern ttlv_state ttlv_xmit_state
Contains a set of task category bit flags (sched_catflags).
extern sched_catflags ttlv_xmit_task_cats
TLV type identifier field.
uint8_t type