minipix_uart_interface
A library and examples for the MiniPIX UART interface
llcp.c File Reference
#include <llcp.h>
+ Include dependency graph for llcp.c:

Functions

uint8_t llcp_hex2bin (const uint8_t *ptr)
 
void llcp_bin2hex (const uint8_t x, uint8_t *buffer)
 convert a single byte to hexadecimal More...
 
void llcp_initialize (LLCP_Receiver_t *receiver)
 
bool llcp_processChar (const uint8_t char_in, LLCP_Receiver_t *receiver, LLCP_Message_t **message, bool *checksum_matched)
 
uint16_t llcp_prepareMessage (uint8_t *what, uint8_t len, uint8_t *buffer)
 

Function Documentation

◆ llcp_bin2hex()

void llcp_bin2hex ( const uint8_t  x,
uint8_t *  buffer 
)

convert a single byte to hexadecimal

Parameters
xthe byte to convert
bufferpointer to a 2-char buffer for the result

◆ llcp_hex2bin()

uint8_t llcp_hex2bin ( const uint8_t *  ptr)

◆ llcp_initialize()

void llcp_initialize ( LLCP_Receiver_t receiver)

◆ llcp_prepareMessage()

uint16_t llcp_prepareMessage ( uint8_t *  what,
uint8_t  len,
uint8_t *  buffer 
)

◆ llcp_processChar()

bool llcp_processChar ( const uint8_t  char_in,
LLCP_Receiver_t receiver,
LLCP_Message_t **  message,
bool *  checksum_matched 
)