|
Functions |
uint32_t | crc_itu32_calc (const uint8_t *buf, int len, uint32_t crc) |
| Calculate the ITU/CCITT CRC-32 value in buffer.
|
int | crc_itu32_append (uint8_t *buf, int len) |
| Append an ITU/CCITT CRC-32 value to a frame.
|
int | crc_itu32_check (const uint8_t *buf, int len) |
| Check the ITU/CCITT CRC-32 value in a frame.
|
uint16_t | crc_itu16_calc (const uint8_t *buf, int len, uint16_t crc) |
| Calculate the ITU/CCITT CRC-16 value in buffer.
|
int | crc_itu16_append (uint8_t *buf, int len) |
| Append an ITU/CCITT CRC-16 value to a frame.
|
int | crc_itu16_check (const uint8_t *buf, int len) |
| Check the ITU/CCITT CRC-16 value in a frame.
|
void | hdlc_rx_put_bit (hdlc_rx_state_t *s, int new_bit) |
void | hdlc_rx_put_byte (hdlc_rx_state_t *s, int new_byte) |
int | hdlc_tx_frame (hdlc_tx_state_t *s, const uint8_t *frame, int len) |
| Transmit a frame.
|
int | hdlc_tx_preamble (hdlc_tx_state_t *s, int len) |
| Transmit a specified quantity of flag octets as a preamble.
|
int | hdlc_tx_corrupt_frame (hdlc_tx_state_t *s) |
| Corrupt the frame currently being transmitted, by giving it the wrong CRC.
|
int | hdlc_tx_get_byte (hdlc_tx_state_t *s) |
| Get the next byte for transmission.
|
int | hdlc_tx_get_bit (hdlc_tx_state_t *s) |
| Get the next bit for transmission.
|
hdlc_rx_state_t * | hdlc_rx_init (hdlc_rx_state_t *s, int crc32, int report_bad_frames, int framing_ok_threshold, hdlc_frame_handler_t handler, void *user_data) |
| Initialise an HDLC receiver context.
|
int | hdlc_rx_get_stats (hdlc_rx_state_t *s, hdlc_rx_stats_t *t) |
| Get the current receive statistics.
|
void | hdlc_tx_set_max_frame_len (hdlc_tx_state_t *s, int max_len) |
| Set the maximum frame length for an HDLC transmitter context.
|
hdlc_tx_state_t * | hdlc_tx_init (hdlc_tx_state_t *s, int crc32, int inter_frame_flags, int progressive, hdlc_underflow_handler_t handler, void *user_data) |
| Initialise an HDLC transmitter context.
|