Microchip® Advanced Software Framework

main.h File Reference

Main functions.

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

Functions

void at86rfx_tal_rx_frame_cb (uint8_t *rx_frame_array)
 Callback that is called once a frame is received. More...
 
void at86rfx_tal_tx_status_cb (uint8_t status)
 Callback that is called once tx is done. More...
 
void main_cdc_disable (void)
 Called by CDC interface Callback running when USB Host disable cdc interface. More...
 
bool main_cdc_enable (void)
 Called by CDC interface Callback running when USB Host enable CDC interface. More...
 
void usb_rx_notify (void)
 Callback that is called once a byte is received from USB. More...
 

void at86rfx_tal_rx_frame_cb ( uint8_t *  rx_frame_array)

Callback that is called once a frame is received.

Parameters
rx_frame_arrayPointer for the received frame

References FCS_LEN, LED0, LED_Toggle(), and udi_cdc_write_buf().

void at86rfx_tal_tx_status_cb ( uint8_t  status)

Callback that is called once tx is done.

Parameters
statusStatus of the transmission procedure

References AT86RFX_CHANNEL_ACCESS_FAILURE, AT86RFX_SUCCESS, at86rfx_tx_frame(), FCS_LEN, LED1, LED_Toggle(), tx_buffer, TX_IDLE, tx_state, and udi_cdc_write_buf().

void main_cdc_disable ( void  )

Called by CDC interface Callback running when USB Host disable cdc interface.

References main_b_cdc_enable.

bool main_cdc_enable ( void  )

Called by CDC interface Callback running when USB Host enable CDC interface.

Return values
trueif cdc startup is successfully done

References main_b_cdc_enable.

void usb_rx_notify ( void  )

Callback that is called once a byte is received from USB.

References usb_rx_byte_rcvd.