Microchip® Advanced Software Framework

api_decoder.c File Reference

Decodes comman byte stream into respective api's.

Copyright (c) 2013-2018 Microchip Technology Inc. and its subsidiaries.

#include "compiler.h"
#include "string.h"
#include "sio2ncp.h"
#include "api_parser.h"
#include "common_sw_timer.h"

Macros

#define SIO_RX_BUF_SIZE   156
 

Functions

static void api_process_incoming_sio_data (void)
 Process data received from SIO. More...
 
void handle_rx_frame (void)
 
void process_rf_serial_byte (uint8_t byte)
 
bool wpan_task (void)
 The stack task function called by the application. More...
 

Variables

uint8_t data [SIO_RX_BUF_SIZE]
 
uint8_t data_length = 0
 
static uint8_t * rcv_buff_ptr
 
uint8_t rcv_buffer [RX_BUFFER_LENGTH] = {0}
 
uint8_t * rcv_frame_ptr
 
static uint8_t rcv_length = 0
 
static uint8_t rcv_state = UART_RX_STATE_SOT
 
static uint8_t rx_index = 0