API_LayerEMDRV > EZRADIODRV
Detailed Description
EzRadio API Layer
.
Enumerations |
|
| enum |
EZRADIO_ConfigRet_t
{
EZRADIO_CONFIG_SUCCESS , EZRADIO_CONFIG_NO_PATCH , EZRADIO_CONFIG_CTS_TIMEOUT , EZRADIO_CONFIG_PATCH_FAIL , EZRADIO_CONFIG_COMMAND_ERROR } |
Functions |
|
| void | ezradio_change_state (uint8_t next_state1) |
| EZRADIO_ConfigRet_t | ezradio_configuration_init (const uint8_t *pSetPropCmd) |
| void | ezradio_ezconfig_check (uint16_t checksum, ezradio_cmd_reply_t *ezradioReply) |
| void | ezradio_fifo_info (uint8_t fifo, ezradio_cmd_reply_t *ezradioReply) |
| void | ezradio_fifo_info_fast_read (ezradio_cmd_reply_t *ezradioReply) |
| void | ezradio_fifo_info_fast_reset (uint8_t fifo) |
| void | ezradio_frr_a_read (uint8_t respByteCount, ezradio_cmd_reply_t *ezradioReply) |
| void | ezradio_frr_b_read (uint8_t respByteCount, ezradio_cmd_reply_t *ezradioReply) |
| void | ezradio_frr_c_read (uint8_t respByteCount, ezradio_cmd_reply_t *ezradioReply) |
| void | ezradio_frr_d_read (uint8_t respByteCount, ezradio_cmd_reply_t *ezradioReply) |
| void | ezradio_func_info (ezradio_cmd_reply_t *ezradioReply) |
| void | ezradio_get_adc_reading (uint8_t adc_en, uint8_t adc_cfg, ezradio_cmd_reply_t *ezradioReply) |
| void | ezradio_get_chip_status (uint8_t chip_clr_pend, ezradio_cmd_reply_t *ezradioReply) |
| void | ezradio_get_chip_status_fast_clear (void) |
| void | ezradio_get_chip_status_fast_clear_read (ezradio_cmd_reply_t *ezradioReply) |
| void | ezradio_get_int_status (uint8_t ph_clr_pend, uint8_t modem_clr_pend, uint8_t chip_clr_pend, ezradio_cmd_reply_t *ezradioReply) |
| void | ezradio_get_int_status_fast_clear (void) |
| void | ezradio_get_int_status_fast_clear_read (ezradio_cmd_reply_t *ezradioReply) |
| void | ezradio_get_modem_status (uint8_t modem_clr_pend, ezradio_cmd_reply_t *ezradioReply) |
| void | ezradio_get_modem_status_fast_clear (void) |
| void | ezradio_get_modem_status_fast_clear_read (ezradio_cmd_reply_t *ezradioReply) |
| void | ezradio_get_packet_info (uint8_t field_number_mask, uint16_t len, int16_t diff_len, ezradio_cmd_reply_t *ezradioReply) |
| void | ezradio_get_ph_status (uint8_t ph_clr_pend, ezradio_cmd_reply_t *ezradioReply) |
| void | ezradio_get_ph_status_fast_clear (void) |
| void | ezradio_get_ph_status_fast_clear_read (ezradio_cmd_reply_t *ezradioReply) |
| void | ezradio_get_property (uint8_t group, uint8_t num_props, uint8_t start_prop, ezradio_cmd_reply_t *ezradioReply) |
| void | ezradio_gpio_pin_cfg (uint8_t gpio0, uint8_t gpio1, uint8_t gpio2, uint8_t gpio3, uint8_t nirq, uint8_t sdo, uint8_t gen_config, ezradio_cmd_reply_t *ezradioReply) |
| void | ezradio_gpio_pin_cfg_fast (ezradio_cmd_reply_t *ezradioReply) |
| void | ezradio_ircal (uint8_t searching_step_size, uint8_t searching_rssi_avg, uint8_t rx_chain_setting1, uint8_t rx_chain_setting2) |
| void | ezradio_ircal_manual (uint8_t ircal_amp, uint8_t ircal_ph, ezradio_cmd_reply_t *ezradioReply) |
| void | ezradio_nop (void) |
| void | ezradio_part_info (ezradio_cmd_reply_t *ezradioReply) |
| void | ezradio_power_up (uint8_t boot_options, uint8_t xtal_options, uint32_t xo_freq) |
| void | ezradio_read_cmd_buff (ezradio_cmd_reply_t *ezradioReply) |
| void | ezradio_read_rx_fifo (uint8_t numbytes, uint8_t *prxdata) |
| void | ezradio_request_device_state (ezradio_cmd_reply_t *ezradioReply) |
| void | ezradio_reset (void) |
| void | ezradio_rx_hop (uint8_t inte, uint8_t frac2, uint8_t frac1, uint8_t frac0, uint8_t vco_cnt1, uint8_t vco_cnt0) |
| void | ezradio_set_property (uint8_t group, uint8_t num_props, uint8_t start_prop,...) |
| void | ezradio_start_rx (uint8_t channel, uint8_t condition, uint16_t rx_len, uint8_t next_state1, uint8_t next_state2, uint8_t next_state3) |
| void | ezradio_start_rx_fast (void) |
| void | ezradio_start_tx (uint8_t channel, uint8_t condition, uint16_t tx_len) |
| void | ezradio_start_tx_fast (void) |
| void | ezradio_tx_hop (uint8_t inte, uint8_t frac2, uint8_t frac1, uint8_t frac0, uint8_t vco_cnt1, uint8_t vco_cnt0, uint8_t pll_settle_time1, uint8_t pll_settle_time0) |
| void | ezradio_write_ezconfig_array (uint8_t numBytes, uint8_t *pEzConfigArray) |
| void | ezradio_write_tx_fifo (uint8_t numbytes, uint8_t *pdata) |
Enumeration Type Documentation
| enum EZRADIO_ConfigRet_t |
EZRadio device configuration return values
Definition at line
65
of file
ezradio_api_lib.h
.
Function Documentation
| void ezradio_change_state | ( | uint8_t |
next_state1
|
) |
Issue a change state command to the radio.
- Parameters
-
[in] next_state1Next state.
Definition at line
298
of file
ezradio_api_lib.c
.
References ezradio_comm_SendCmd() .
Referenced by ezradioStopDirectReceive() , ezradioStopDirectTransmit() , ezradioStopPn9() , and ezradioStopUnmodulatedCarrier() .
| EZRADIO_ConfigRet_t ezradio_configuration_init | ( | const uint8_t * |
pSetPropCmd
|
) |
This function is used to load all properties and commands with a list of NULL terminated commands. Before this function ezradio_reset should be called.
- Parameters
-
[in] pSetPropCmdPointer to the configuration array.
Definition at line
53
of file
ezradio_api_lib_add.c
.
References ezradio_comm_SendCmdGetResp() , EZRADIO_CONFIG_COMMAND_ERROR , EZRADIO_CONFIG_CTS_TIMEOUT , EZRADIO_CONFIG_SUCCESS , ezradio_get_int_status() , ezradio_hal_NirqLevel() , and ezradio_write_ezconfig_array() .
Referenced by ezradioInit() .
| void ezradio_ezconfig_check | ( | uint16_t |
checksum,
|
| ezradio_cmd_reply_t * |
ezradioReply
|
||
| ) |
Validates the EZConfig array was written correctly.
- Parameters
-
[in] checksumChecksum value [out] ezradioReplyReply structure of the command.
Definition at line
143
of file
ezradio_api_lib_add.c
.
References ezradio_comm_CtsWentHigh , and ezradio_comm_SendCmdGetResp() .
| void ezradio_fifo_info | ( | uint8_t |
fifo,
|
| ezradio_cmd_reply_t * |
ezradioReply
|
||
| ) |
Send the FIFO_INFO command to the radio. Optionally resets the TX/RX FIFO. Reads the radio response back into ezradioReply.
- Parameters
-
[in] fifoRX/TX FIFO reset flags. [out] ezradioReplyReply structure of the command.
Definition at line
332
of file
ezradio_api_lib.c
.
References ezradio_comm_SendCmdGetResp() .
Referenced by ezradioResetTRxFifo() .
| void ezradio_fifo_info_fast_read | ( | ezradio_cmd_reply_t * |
ezradioReply
|
) |
Reads RX/TX FIFO count space. Does NOT reset RX/TX FIFO
- Parameters
-
[out] ezradioReplyReply structure of the command.
Definition at line
962
of file
ezradio_api_lib.c
.
References ezradio_comm_SendCmdGetResp() .
| void ezradio_fifo_info_fast_reset | ( | uint8_t |
fifo
|
) |
Resets the RX/TX FIFO. Does not read back anything from TX/RX FIFO
- Parameters
-
[in] fifoFIFO to be reset.
Definition at line
946
of file
ezradio_api_lib.c
.
References ezradio_comm_SendCmd() .
| void ezradio_frr_a_read | ( | uint8_t |
respByteCount,
|
| ezradio_cmd_reply_t * |
ezradioReply
|
||
| ) |
Reads the Fast Response Registers starting with A register into ezradioReply union.
- Parameters
-
[in] respByteCountNumber of Fast Response Registers to be read. [out] ezradioReplyReply structure of the command.
Definition at line
452
of file
ezradio_api_lib.c
.
References ezradio_comm_ReadData() .
| void ezradio_frr_b_read | ( | uint8_t |
respByteCount,
|
| ezradio_cmd_reply_t * |
ezradioReply
|
||
| ) |
Reads the Fast Response Registers starting with B register into ezradioReply union.
- Parameters
-
[in] respByteCountNumber of Fast Response Registers to be read. [out] ezradioReplyReply structure of the command.
Definition at line
476
of file
ezradio_api_lib.c
.
References ezradio_comm_ReadData() .
| void ezradio_frr_c_read | ( | uint8_t |
respByteCount,
|
| ezradio_cmd_reply_t * |
ezradioReply
|
||
| ) |
Reads the Fast Response Registers starting with C register into ezradioReply union.
- Parameters
-
[in] respByteCountNumber of Fast Response Registers to be read. [out] ezradioReplyReply structure of the command.
Definition at line
500
of file
ezradio_api_lib.c
.
References ezradio_comm_ReadData() .
| void ezradio_frr_d_read | ( | uint8_t |
respByteCount,
|
| ezradio_cmd_reply_t * |
ezradioReply
|
||
| ) |
Reads the Fast Response Registers starting with D register into ezradioReply union.
- Parameters
-
[in] respByteCountNumber of Fast Response Registers to be read. [out] ezradioReplyReply structure of the command.
Definition at line
524
of file
ezradio_api_lib.c
.
References ezradio_comm_ReadData() .
| void ezradio_func_info | ( | ezradio_cmd_reply_t * |
ezradioReply
|
) |
Sends the FUNC_INFO command to the radio, then reads the resonse into ezradioReply union.
- Parameters
-
[out] ezradioReplyReply structure of the command.
Definition at line
426
of file
ezradio_api_lib.c
.
References ezradio_comm_SendCmdGetResp() .
| void ezradio_get_adc_reading | ( | uint8_t |
adc_en,
|
| uint8_t |
adc_cfg,
|
||
| ezradio_cmd_reply_t * |
ezradioReply
|
||
| ) |
Reads the ADC values from the radio into ezradioReply union.
- Parameters
-
[in] adc_enADC enable parameter. [in] adc_cfgADC configuration parameter. [out] ezradioReplyReply structure of the command.
Definition at line
178
of file
ezradio_api_lib_add.c
.
References ezradio_comm_SendCmdGetResp() .
| void ezradio_get_chip_status | ( | uint8_t |
chip_clr_pend,
|
| ezradio_cmd_reply_t * |
ezradioReply
|
||
| ) |
Gets the Chip status flags. Optionally clears them.
- Parameters
-
[in] chip_clr_pendFlags to clear. [out] ezradioReplyReply structure of the command.
Definition at line
664
of file
ezradio_api_lib.c
.
References ezradio_comm_SendCmdGetResp() .
| void ezradio_get_chip_status_fast_clear | ( | void |
|
) |
Clear all Chip status flags. Does NOT read back interrupt flags
Definition at line
906
of file
ezradio_api_lib.c
.
References ezradio_comm_SendCmd() .
| void ezradio_get_chip_status_fast_clear_read | ( | ezradio_cmd_reply_t * |
ezradioReply
|
) |
Clear and read all Chip status flags.
- Parameters
-
[out] ezradioReplyReply structure of the command.
Definition at line
922
of file
ezradio_api_lib.c
.
References ezradio_comm_SendCmdGetResp() .
| void ezradio_get_int_status | ( | uint8_t |
ph_clr_pend,
|
| uint8_t |
modem_clr_pend,
|
||
| uint8_t |
chip_clr_pend,
|
||
| ezradio_cmd_reply_t * |
ezradioReply
|
||
| ) |
Get the Interrupt status/pending flags form the radio and clear flags if requested.
- Parameters
-
[in] ph_clr_pendPacket Handler pending flags clear. [in] modem_clr_pendModem Status pending flags clear. [in] chip_clr_pendChip State pending flags clear. [out] ezradioReplyReply structure of the command.
Definition at line
185
of file
ezradio_api_lib.c
.
References ezradio_comm_SendCmdGetResp() .
Referenced by ezradio_configuration_init() , ezradioInit() , ezradioPluginManager() , ezradioStartDirectReceive() , ezradioStartDirectTransmit() , ezradioStartPn9() , and ezradioStartUnmodulatedCarrier() .
| void ezradio_get_int_status_fast_clear | ( | void |
|
) |
Clear all Interrupt status/pending flags. Does NOT read back interrupt flags
Definition at line
753
of file
ezradio_api_lib.c
.
References ezradio_comm_SendCmd() .
| void ezradio_get_int_status_fast_clear_read | ( | ezradio_cmd_reply_t * |
ezradioReply
|
) |
Clear and read all Interrupt status/pending flags
- Parameters
-
[out] ezradioReplyReply structure of the command.
Definition at line
768
of file
ezradio_api_lib.c
.
References ezradio_comm_SendCmdGetResp() .
| void ezradio_get_modem_status | ( | uint8_t |
modem_clr_pend,
|
| ezradio_cmd_reply_t * |
ezradioReply
|
||
| ) |
Gets the Modem status flags. Optionally clears them.
- Parameters
-
[in] modem_clr_pendFlags to clear. [out] ezradioReplyReply structure of the command.
Definition at line
633
of file
ezradio_api_lib.c
.
References ezradio_comm_SendCmdGetResp() .
| void ezradio_get_modem_status_fast_clear | ( | void |
|
) |
Clear all Modem status flags. Does NOT read back interrupt flags
Definition at line
862
of file
ezradio_api_lib.c
.
References ezradio_comm_SendCmd() .
| void ezradio_get_modem_status_fast_clear_read | ( | ezradio_cmd_reply_t * |
ezradioReply
|
) |
Clear and read all Modem status flags.
- Parameters
-
[out] ezradioReplyReply structure of the command.
Definition at line
878
of file
ezradio_api_lib.c
.
References ezradio_comm_SendCmdGetResp() .
| void ezradio_get_packet_info | ( | uint8_t |
field_number_mask,
|
| uint16_t |
len,
|
||
| int16_t |
diff_len,
|
||
| ezradio_cmd_reply_t * |
ezradioReply
|
||
| ) |
Receives information from the radio of the current packet. Optionally can be used to modify the Packet Handler properties during packet reception.
- Parameters
-
[in] field_number_maskPacket Field number mask value. [in] lenLength value. [in] diff_lenDifference length. [out] ezradioReplyReply structure of the command.
Definition at line
693
of file
ezradio_api_lib.c
.
References ezradio_comm_SendCmdGetResp() .
| void ezradio_get_ph_status | ( | uint8_t |
ph_clr_pend,
|
| ezradio_cmd_reply_t * |
ezradioReply
|
||
| ) |
Gets the Packet Handler status flags. Optionally clears them.
- Parameters
-
[in] ph_clr_pendFlags to clear. [out] ezradioReplyReply structure of the command.
Definition at line
608
of file
ezradio_api_lib.c
.
References ezradio_comm_SendCmdGetResp() .
| void ezradio_get_ph_status_fast_clear | ( | void |
|
) |
Clear all Packet Handler status flags. Does NOT read back interrupt flags
Definition at line
824
of file
ezradio_api_lib.c
.
References ezradio_comm_SendCmd() .
| void ezradio_get_ph_status_fast_clear_read | ( | ezradio_cmd_reply_t * |
ezradioReply
|
) |
Clear and read all Packet Handler status flags.
- Parameters
-
[out] ezradioReplyReply structure of the command.
Definition at line
840
of file
ezradio_api_lib.c
.
References ezradio_comm_SendCmdGetResp() .
| void ezradio_get_property | ( | uint8_t |
group,
|
| uint8_t |
num_props,
|
||
| uint8_t |
start_prop,
|
||
| ezradio_cmd_reply_t * |
ezradioReply
|
||
| ) |
Get property values from the radio. Reads them into ezradioReply union.
- Parameters
-
[in] groupProperty group number. [in] num_propsNumber of properties to be read. [in] start_propStarting sub-property number. [out] ezradioReplyReply structure of the command.
Definition at line
382
of file
ezradio_api_lib.c
.
References ezradio_comm_SendCmdGetResp() .
| void ezradio_gpio_pin_cfg | ( | uint8_t |
gpio0,
|
| uint8_t |
gpio1,
|
||
| uint8_t |
gpio2,
|
||
| uint8_t |
gpio3,
|
||
| uint8_t |
nirq,
|
||
| uint8_t |
sdo,
|
||
| uint8_t |
gen_config,
|
||
| ezradio_cmd_reply_t * |
ezradioReply
|
||
| ) |
Send GPIO pin config command to the radio and reads the answer into ezradioReply union.
- Parameters
-
[in] gpio0GPIO0 configuration. [in] gpio1GPIO1 configuration. [in] gpio2GPIO2 configuration. [in] gpio3GPIO3 configuration. [in] nirqNIRQ configuration. [in] sdoSDO configuration. [in] gen_configGeneral pin configuration. [out] ezradioReplyReply structure of the command.
Definition at line
226
of file
ezradio_api_lib.c
.
References ezradio_comm_SendCmdGetResp() .
| void ezradio_gpio_pin_cfg_fast | ( | ezradio_cmd_reply_t * |
ezradioReply
|
) |
Reads back current GPIO pin configuration. Does NOT configure GPIO pins
- Parameters
-
[out] ezradioReplyReply structure of the command.
Definition at line
797
of file
ezradio_api_lib.c
.
References ezradio_comm_SendCmdGetResp() .
| void ezradio_ircal | ( | uint8_t |
searching_step_size,
|
| uint8_t |
searching_rssi_avg,
|
||
| uint8_t |
rx_chain_setting1,
|
||
| uint8_t |
rx_chain_setting2
|
||
| ) |
Performs image rejection calibration. Completion can be monitored by polling CTS or waiting for CHIP_READY interrupt source.
- Parameters
-
[in] searching_step_size[in] searching_rssi_avg[in] rx_chain_setting1[in] rx_chain_setting2
Definition at line
144
of file
ezradio_api_lib_add.c
.
References ezradio_comm_SendCmd() .
| void ezradio_ircal_manual | ( | uint8_t |
ircal_amp,
|
| uint8_t |
ircal_ph,
|
||
| ezradio_cmd_reply_t * |
ezradioReply
|
||
| ) |
Image rejection calibration. Forces a specific value for IR calibration, and reads back calibration values from previous calibrations
- Parameters
-
[in] ircal_amp[in] ircal_ph[out] ezradioReplyReply structure of the command.
Definition at line
165
of file
ezradio_api_lib_add.c
.
References ezradio_comm_SendCmdGetResp() .
| void ezradio_nop | ( | void |
|
) |
Sends NOP command to the radio. Can be used to maintain SPI communication.
Definition at line
315
of file
ezradio_api_lib.c
.
References ezradio_comm_SendCmd() .
| void ezradio_part_info | ( | ezradio_cmd_reply_t * |
ezradioReply
|
) |
This function sends the PART_INFO command to the radio and receives the answer into ezradioReply union.
- Parameters
-
[out] ezradioReplyReply structure of the command.
Definition at line
101
of file
ezradio_api_lib.c
.
References ezradio_comm_SendCmdGetResp() .
| void ezradio_power_up | ( | uint8_t |
boot_options,
|
| uint8_t |
xtal_options,
|
||
| uint32_t |
xo_freq
|
||
| ) |
This function is used to initialize after power-up the radio chip. Before this function ezradio_reset should be called.
- Parameters
-
[in] boot_optionsBoot options input to the power up command. [in] xtal_optionsXTAL options input to the power up command. [in] xo_freqXO frequency input to the power up command.
Definition at line
80
of file
ezradio_api_lib.c
.
References ezradio_comm_SendCmd() .
| void ezradio_read_cmd_buff | ( | ezradio_cmd_reply_t * |
ezradioReply
|
) |
Reads the command buffer
- Parameters
-
[out] ezradioReplyReply structure of the command.
Definition at line
570
of file
ezradio_api_lib.c
.
References ezradio_comm_SendCmdGetResp() .
| void ezradio_read_rx_fifo | ( | uint8_t |
numBytes,
|
| uint8_t * |
pRxData
|
||
| ) |
Reads the RX FIFO content from the radio.
- Parameters
-
[in] numBytesData length to be read. [in] pRxDataPointer to the buffer location.
Definition at line
369
of file
ezradio_api_lib.c
.
References ezradio_comm_ReadData() .
| void ezradio_request_device_state | ( | ezradio_cmd_reply_t * |
ezradioReply
|
) |
Requests the current state of the device and lists pending TX and RX requests.
- Parameters
-
[out] ezradioReplyReply structure of the command.
Definition at line
547
of file
ezradio_api_lib.c
.
References ezradio_comm_SendCmdGetResp() .
Referenced by ezradioStartDirectTransmit() , ezradioStartPn9() , and ezradioStartUnmodulatedCarrier() .
| void ezradio_reset | ( | void |
|
) |
This functions is used to reset the EZRadio device by applying shutdown and releasing it. After this function ezradio_power_up or ezradio_configuration_init should be called. The user can check if POR has completed by waiting 4 ms or by polling radio GPIO 0, 2, or 3. When these GPIOs are high, it is safe to call the above mentioned functions.
Definition at line
54
of file
ezradio_api_lib.c
.
References ezradio_comm_ClearCTS() , ezradio_hal_AssertShutdown() , ezradio_hal_DeassertShutdown() , USTIMER_DeInit() , USTIMER_Delay() , and USTIMER_Init() .
| void ezradio_rx_hop | ( | uint8_t |
inte,
|
| uint8_t |
frac2,
|
||
| uint8_t |
frac1,
|
||
| uint8_t |
frac0,
|
||
| uint8_t |
vco_cnt1,
|
||
| uint8_t |
vco_cnt0
|
||
| ) |
While in RX state this will hop to the frequency specified by the parameters and start searching for a preamble.
- Parameters
-
[in] intenew inte register value. [in] frac2new frac2 register value. [in] frac1new frac1 register value. [in] frac0new frac0 register value. [in] vco_cnt1new vco_cnt1 register value. [in] vco_cnt0new vco_cnt0 register value.
Definition at line
225
of file
ezradio_api_lib_add.c
.
References ezradio_comm_SendCmd() .
| void ezradio_set_property | ( | uint8_t |
group,
|
| uint8_t |
num_props,
|
||
| uint8_t |
start_prop,
|
||
...
|
|||
| ) |
Send SET_PROPERTY command to the radio.
- Parameters
-
[in] groupProperty group. [in] num_propsNumber of property to be set. The properties must be in ascending order in their sub-property aspect. Max. 12 properties can be set in one command. [in] start_propStart sub-property address. [in] ...Variable number of properties to be set.
Definition at line
269
of file
ezradio_api_lib.c
.
References ezradio_comm_SendCmd() .
| void ezradio_start_rx | ( | uint8_t |
channel,
|
| uint8_t |
condition,
|
||
| uint16_t |
rx_len,
|
||
| uint8_t |
next_state1,
|
||
| uint8_t |
next_state2,
|
||
| uint8_t |
next_state3
|
||
| ) |
Sends START_RX command to the radio.
- Parameters
-
[in] channelChannel number. [in] conditionStart RX condition. [in] rx_lenPayload length (exclude the PH generated CRC). [in] next_state1Next state when Preamble Timeout occurs. [in] next_state2Next state when a valid packet received. [in] next_state3Next state when invalid packet received (e.g. CRC error).
Definition at line
160
of file
ezradio_api_lib.c
.
References ezradio_comm_SendCmd() .
Referenced by ezradioStartDirectReceive() , and ezradioStartRx() .
| void ezradio_start_rx_fast | ( | void |
|
) |
Sends START_RX command ID to the radio with no input parameters
Definition at line
739
of file
ezradio_api_lib.c
.
References ezradio_comm_SendCmd() .
| void ezradio_start_tx | ( | uint8_t |
channel,
|
| uint8_t |
condition,
|
||
| uint16_t |
tx_len
|
||
| ) |
Sends START_TX command to the radio.
- Parameters
-
[in] channelChannel number. [in] conditionStart TX condition. [in] tx_lenPayload length (exclude the PH generated CRC).
Definition at line
131
of file
ezradio_api_lib.c
.
References ezradio_comm_SendCmd() .
Referenced by ezradioStartDirectTransmit() , ezradioStartPn9() , and ezradioStartUnmodulatedCarrier() .
| void ezradio_start_tx_fast | ( | void |
|
) |
Sends START_TX command ID to the radio with no input parameters
Definition at line
725
of file
ezradio_api_lib.c
.
References ezradio_comm_SendCmd() .
| void ezradio_tx_hop | ( | uint8_t |
inte,
|
| uint8_t |
frac2,
|
||
| uint8_t |
frac1,
|
||
| uint8_t |
frac0,
|
||
| uint8_t |
vco_cnt1,
|
||
| uint8_t |
vco_cnt0,
|
||
| uint8_t |
pll_settle_time1,
|
||
| uint8_t |
pll_settle_time0
|
||
| ) |
While in TX state this will hop to the frequency specified by the parameters
- Parameters
-
[in] intenew inte register value. [in] frac2new frac2 register value. [in] frac1new frac1 register value. [in] frac0new frac0 register value. [in] vco_cnt1new vco_cnt1 register value. [in] vco_cnt0new vco_cnt0 register value. [in] pll_settle_time1new pll_settle_time1 register value. [in] pll_settle_time0new pll_settle_time0 register value.
Definition at line
197
of file
ezradio_api_lib_add.c
.
References ezradio_comm_SendCmd() .
| void ezradio_write_ezconfig_array | ( | uint8_t |
numBytes,
|
| uint8_t * |
pEzConfigArray
|
||
| ) |
Writes data byte(s) to the EZConfig array.
- Parameters
-
[in] numBytesnumber of bytes to send [in] pEzConfigArraypointer to the EZConfig configuration array
Definition at line
132
of file
ezradio_api_lib_add.c
.
References ezradio_comm_WriteData() .
Referenced by ezradio_configuration_init() .
| void ezradio_write_tx_fifo | ( | uint8_t |
numBytes,
|
| uint8_t * |
pTxData
|
||
| ) |
The function can be used to load data into TX FIFO.
- Parameters
-
[in] numBytesData length to be load. [in] pTxDataPointer to the data (uint8_t*).
Definition at line
358
of file
ezradio_api_lib.c
.
References ezradio_comm_WriteData() .