csp_if_kiss.h File Reference
#include <stdint.h>
#include <csp/csp.h>
#include <csp/csp_interface.h>

Go to the source code of this file.

Data Structures

struct  csp_kiss_handle_s
 This structure should be statically allocated by the user and passed to the kiss interface during the init function no member information should be changed. More...
 

Typedefs

typedef void(* csp_kiss_putc_f) (char buf)
 The putc function is used by the kiss interface to send a string of data to the serial port. More...
 
typedef void(* csp_kiss_discard_f) (char c, void *pxTaskWoken)
 The characters not accepted by the kiss interface, are discarded using this function, which must be implemented by the user and passed through the kiss_init function. More...
 
typedef struct csp_kiss_handle_s csp_kiss_handle_t
 This structure should be statically allocated by the user and passed to the kiss interface during the init function no member information should be changed. More...
 

Enumerations

enum  kiss_mode_e { KISS_MODE_NOT_STARTED, KISS_MODE_STARTED, KISS_MODE_ESCAPED, KISS_MODE_SKIP_FRAME }
 

Functions

void csp_kiss_rx (csp_iface_t *interface, uint8_t *buf, int len, void *pxTaskWoken)
 The KISS interface relies on the USART callback in order to parse incoming messaged from the serial interface. More...
 
void csp_kiss_init (csp_iface_t *csp_iface, csp_kiss_handle_t *csp_kiss_handle, csp_kiss_putc_f kiss_putc_f, csp_kiss_discard_f kiss_discard_f, const char *name)