Microchip® Advanced Software Framework

avr32/applications/rz600-uc3a-wireless-uart/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, 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, test_assert_true, 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.

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

References main_b_cdc_enable, and main_b_cdc_enumerated.

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

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

Return values
trueif CDC startup is ok

References main_b_cdc_enable, and main_b_cdc_enumerated.