Microchip® Advanced Software Framework

radio_get_set.h File Reference

This is the radio_get_set header file which contains interfaces for Getting and Setting the Radio and Transciver parameters.

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

Macros

#define RADIO_DEFAULT_FREQ   DEFAULT_CALIBRATION_FREQ
 

Functions

void Radio_WriteConfiguration (uint16_t symbolTimeout)
 This function prepares the transceiver for transmit and receive according to modulation set. More...
 
void Radio_WriteFrequency (uint32_t frequency)
 This function sets the transmit frequency. More...
 
void Radio_WriteMode (RadioMode_t newMode, RadioModulation_t newModulation, uint8_t blocking)
 This function sets the radioMode and modulation in order to set the transceiver to transmit and receive at a set modulation. More...
 

#define RADIO_DEFAULT_FREQ   DEFAULT_CALIBRATION_FREQ

void Radio_WriteConfiguration ( uint16_t  symbolTimeout)

This function prepares the transceiver for transmit and receive according to modulation set.

Parameters
symbolTimeout- Sets the symbolTimeout parameter.
Returns
- none.
void Radio_WriteFrequency ( uint32_t  frequency)

This function sets the transmit frequency.

Parameters
frequency- Sets the transmit radio frequency.
Returns
- none.

Referenced by RADIO_FHSSChangeChannel().

void Radio_WriteMode ( RadioMode_t  newMode,
RadioModulation_t  newModulation,
uint8_t  blocking 
)

This function sets the radioMode and modulation in order to set the transceiver to transmit and receive at a set modulation.

Parameters
newMode- Sets the transceiver mode.
newModulation- Sets the modulation.
blocking- Sets if its blocking call or not.
Returns
- none.

References delay_ms, MODE_CAD, MODE_RXSINGLE, MODE_SLEEP, MODULATION_FSK, MODULATION_LORA, RADIO_RegisterRead(), RADIO_RegisterWrite(), REG_DIOMAPPING2, REG_OPMODE, and SystemBlockingWaitMs().

Referenced by RADIO_ReadRandom().