Functions
an_packet_protocol.c File Reference
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include "an_packet_protocol.h"
Include dependency graph for an_packet_protocol.c:

Go to the source code of this file.

Functions

void an_decoder_initialise (an_decoder_t *an_decoder)
 
an_packet_tan_packet_allocate (uint8_t length, uint8_t id)
 
an_packet_tan_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)
 

Function Documentation

void an_decoder_initialise ( an_decoder_t an_decoder)

Definition at line 86 of file an_packet_protocol.c.

an_packet_t* an_packet_allocate ( uint8_t  length,
uint8_t  id 
)

Definition at line 63 of file an_packet_protocol.c.

an_packet_t* an_packet_decode ( an_decoder_t an_decoder)

Definition at line 96 of file an_packet_protocol.c.

void an_packet_encode ( an_packet_t an_packet)

Definition at line 153 of file an_packet_protocol.c.

void an_packet_free ( an_packet_t **  an_packet)

Definition at line 77 of file an_packet_protocol.c.

uint16_t calculate_crc16 ( const void *  data,
uint16_t  length 
)

Definition at line 41 of file an_packet_protocol.c.

uint8_t calculate_header_lrc ( uint8_t *  data)

Definition at line 55 of file an_packet_protocol.c.



advanced_navigation_driver
Author(s):
autogenerated on Thu Jun 6 2019 19:13:08