Go to the source code of this file.
Functions | |
void | an_decoder_initialise (an_decoder_t *an_decoder) |
an_packet_t * | an_packet_allocate (uint8_t length, uint8_t id) |
an_packet_t * | an_packet_decode (an_decoder_t *an_decoder) |
void | an_packet_encode (an_packet_t *an_packet) |
void | an_packet_free (an_packet_t **an_packet) |
uint16_t | calculate_crc16 (const void *data, uint16_t length) |
uint8_t | calculate_header_lrc (uint8_t *data) |
void an_decoder_initialise | ( | an_decoder_t * | an_decoder | ) |
Definition at line 86 of file include/an_packet_protocol.cpp.
an_packet_t* an_packet_allocate | ( | uint8_t | length, |
uint8_t | id | ||
) |
Definition at line 63 of file include/an_packet_protocol.cpp.
an_packet_t* an_packet_decode | ( | an_decoder_t * | an_decoder | ) |
Definition at line 96 of file include/an_packet_protocol.cpp.
void an_packet_encode | ( | an_packet_t * | an_packet | ) |
Definition at line 153 of file include/an_packet_protocol.cpp.
void an_packet_free | ( | an_packet_t ** | an_packet | ) |
Definition at line 77 of file include/an_packet_protocol.cpp.
uint16_t calculate_crc16 | ( | const void * | data, |
uint16_t | length | ||
) |
Definition at line 41 of file include/an_packet_protocol.cpp.
uint8_t calculate_header_lrc | ( | uint8_t * | data | ) |
Definition at line 55 of file include/an_packet_protocol.cpp.