ccrf2 2.0.0.0
|
Functions | |
void | ccrf2_cfg_setup (ccrf2_cfg_t *cfg) |
Config Object Initialization function. | |
CCRF2_RETVAL | ccrf2_init (ccrf2_t *ctx, ccrf2_cfg_t *cfg) |
Initialization function. | |
void | ccrf2_default_cfg (ccrf2_t *ctx) |
Click Default Configuration function. | |
void | ccrf2_hw_reset (ccrf2_t *ctx) |
Hardware reset function. | |
uint8_t | ccrf2_cmd_strobe (ccrf2_t *ctx, uint8_t cmd) |
Set command strobe function. | |
void | ccrf2_read_write_burst_single (ccrf2_t *ctx, uint8_t reg_address, uint8_t *rw_data, uint16_t n_bytes) |
Read or write burst single function. | |
uint8_t | ccrf2_8bit_reg_access (ccrf2_t *ctx, char access_type, uint8_t reg_address, uint8_t *rw_data, uint16_t n_bytes) |
Access 8-bit register function. | |
uint8_t | ccrf2_16bit_reg_access (ccrf2_t *ctx, uint8_t access_type, uint8_t ext_address, uint8_t reg_address, uint8_t *rw_data, uint8_t n_bytes) |
Access 16-bit register function. | |
uint8_t | ccrf2_read_reg (ccrf2_t *ctx, uint16_t reg_address, uint8_t *read_data, uint8_t n_bytes) |
Read the byte of data function. | |
uint8_t | ccrf2_write_reg (ccrf2_t *ctx, uint16_t reg_address, uint8_t *write_data, uint8_t n_bytes) |
Write sequential data function. | |
uint8_t | ccrf2_write_reg_single (ccrf2_t *ctx, uint16_t reg_address, uint8_t write_data) |
Write one byte data function. | |
uint8_t | ccrf2_write_tx_fifo (ccrf2_t *ctx, uint8_t *write_data, uint8_t n_bytes) |
Write TX FIFO register function. | |
uint8_t | ccrf2_read_rx_fifo (ccrf2_t *ctx, uint8_t *read_data, uint8_t n_bytes) |
Read RX FIFO register function. | |
void | ccrf2_manual_calibration (ccrf2_t *ctx) |
Manual calibration function. | |
void | ccrf2_set_rx_mode (ccrf2_t *ctx) |
Set RX mode function. | |
void | ccrf2_set_tx_mode (ccrf2_t *ctx) |
Set TX mode function. | |
uint8_t | ccrf2_read_gp0 (ccrf2_t *ctx) |
Read state of GP0 pin function. | |
uint8_t | ccrf2_read_gp2 (ccrf2_t *ctx) |
Read state of GP2 pin function. | |
uint8_t | ccrf2_read_gp3 (ccrf2_t *ctx) |
Read state of GP3 pin function. | |
void | ccrf2_send_tx_data (ccrf2_t *ctx, uint8_t *tx_data, uint8_t n_bytes) |
Send TX data function. | |
uint8_t | ccrf2_receive_rx_data (ccrf2_t *ctx, uint8_t *rx_data) |
Receive RX data function. | |
uint8_t ccrf2_16bit_reg_access | ( | ccrf2_t * | ctx, |
uint8_t | access_type, | ||
uint8_t | ext_address, | ||
uint8_t | reg_address, | ||
uint8_t * | rw_data, | ||
uint8_t | n_bytes ) |
Access 16-bit register function.
ctx | Click object. |
access_type | Access type |
ext_address | Ext address |
reg_address | 8-bit register address |
rw_data | pointer to the data to be written/read |
n_bytes | number of bytes to be written/read |
@description Function access to the targeted 16-bit register address of the CC1120 single-chip radio transceiver on the ccRF 2 Click board.
uint8_t ccrf2_8bit_reg_access | ( | ccrf2_t * | ctx, |
char | access_type, | ||
uint8_t | reg_address, | ||
uint8_t * | rw_data, | ||
uint16_t | n_bytes ) |
Access 8-bit register function.
ctx | Click object. |
access_type | Access type |
reg_address | 8-bit register address |
rw_data | pointer to the data to be written/read |
n_bytes | number of bytes to be written/read |
@description Function access to the targeted 8-bit register address of the CC1120 single-chip radio transceiver on the ccRF 2 Click board.
void ccrf2_cfg_setup | ( | ccrf2_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
uint8_t ccrf2_cmd_strobe | ( | ccrf2_t * | ctx, |
uint8_t | cmd ) |
Set command strobe function.
ctx | Click object. |
cmd | 8-bit command |
@description Function sets 8-bit strobe command to the CC1120 single-chip radio transceiver on the ccRF 2 Click board.
void ccrf2_default_cfg | ( | ccrf2_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for ccRF2 click.
void ccrf2_hw_reset | ( | ccrf2_t * | ctx | ) |
Hardware reset function.
ctx | Click object. |
@description The function Hardware reset - resets the CC1120 single-chip radio transceiver on the ccRF 2 Click board.
CCRF2_RETVAL ccrf2_init | ( | ccrf2_t * | ctx, |
ccrf2_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void ccrf2_manual_calibration | ( | ccrf2_t * | ctx | ) |
Manual calibration function.
ctx | Click object. |
@description Function manual calibration the CC1120 single-chip radio transceiver on the ccRF 2 Click board.
uint8_t ccrf2_read_gp0 | ( | ccrf2_t * | ctx | ) |
Read state of GP0 pin function.
ctx | Click object. |
@description Function reads state of GP0 pin of the CC1120 single-chip radio transceiver on the ccRF 2 Click board.
uint8_t ccrf2_read_gp2 | ( | ccrf2_t * | ctx | ) |
Read state of GP2 pin function.
ctx | Click object. |
@description Function reads state of GP2 pin of the CC1120 single-chip radio transceiver on the ccRF 2 Click board.
uint8_t ccrf2_read_gp3 | ( | ccrf2_t * | ctx | ) |
Read state of GP3 pin function.
ctx | Click object. |
@description Function reads state of GP3 pin of the CC1120 single-chip radio transceiver on the ccRF 2 Click board.
uint8_t ccrf2_read_reg | ( | ccrf2_t * | ctx, |
uint16_t | reg_address, | ||
uint8_t * | read_data, | ||
uint8_t | n_bytes ) |
Read the byte of data function.
ctx | Click object. |
reg_address | 16-bit register address |
read_data | pointer to the data to be read |
n_bytes | number of bytes to be read |
@description Function read the byte of data of the targeted 16-bit register address of the CC1120 single-chip radio transceiver on the ccRF 2 Click board.
uint8_t ccrf2_read_rx_fifo | ( | ccrf2_t * | ctx, |
uint8_t * | read_data, | ||
uint8_t | n_bytes ) |
Read RX FIFO register function.
ctx | Click object. |
read_data | pointer to the data to be read |
n_bytes | number of bytes to be read |
@description Function read sequential data from the targeted 8-bit RX FIFO register address of the CC1120 single-chip radio transceiver on the ccRF 2 Click board.
void ccrf2_read_write_burst_single | ( | ccrf2_t * | ctx, |
uint8_t | reg_address, | ||
uint8_t * | rw_data, | ||
uint16_t | n_bytes ) |
Read or write burst single function.
ctx | Click object. |
reg_address | 8-bit register address |
rw_data | pointer to the data to be written/read |
n_bytes | number of bytes to be written/read |
@description Function reads or writes a sequential data starting to the targeted 8-bit register address of the CC1120 single-chip radio transceiver on the ccRF 2 Click board.
uint8_t ccrf2_receive_rx_data | ( | ccrf2_t * | ctx, |
uint8_t * | rx_data ) |
Receive RX data function.
ctx | Click object. |
rx_data | pointer to the data to be receive |
@description Function receive RX data from the transmit module of the CC1120 single-chip radio transceiver on the ccRF 2 Click board.
void ccrf2_send_tx_data | ( | ccrf2_t * | ctx, |
uint8_t * | tx_data, | ||
uint8_t | n_bytes ) |
Send TX data function.
ctx | Click object. |
tx_data | pointer to the data to be send |
n_bytes | number of bytes to be send |
@description Function send TX data to the receive module of the CC1120 single-chip radio transceiver on the ccRF 2 Click board.
void ccrf2_set_rx_mode | ( | ccrf2_t * | ctx | ) |
Set RX mode function.
ctx | Click object. |
@description Function set RX mode of the CC1120 single-chip radio transceiver on the ccRF 2 Click board.
void ccrf2_set_tx_mode | ( | ccrf2_t * | ctx | ) |
Set TX mode function.
ctx | Click object. |
@description Function set TX mode of the CC1120 single-chip radio transceiver on the ccRF 2 Click board.
uint8_t ccrf2_write_reg | ( | ccrf2_t * | ctx, |
uint16_t | reg_address, | ||
uint8_t * | write_data, | ||
uint8_t | n_bytes ) |
Write sequential data function.
ctx | Click object. |
reg_address | 16-bit register address |
write_data | pointer to the data to be written |
n_bytes | number of bytes to be written |
@description Function write a sequential data starting to the targeted 16-bit register address of the CC1120 single-chip radio transceiver on the ccRF 2 Click board.
uint8_t ccrf2_write_reg_single | ( | ccrf2_t * | ctx, |
uint16_t | reg_address, | ||
uint8_t | write_data ) |
Write one byte data function.
ctx | Click object. |
reg_address | 16-bit register address |
write_data | data to be written |
@description Function write a single byte data to the targeted 16-bit register address of the CC1120 single-chip radio transceiver on the ccRF 2 Click board.
uint8_t ccrf2_write_tx_fifo | ( | ccrf2_t * | ctx, |
uint8_t * | write_data, | ||
uint8_t | n_bytes ) |
Write TX FIFO register function.
ctx | Click object. |
write_data | pointer to the data to be written |
n_bytes | number of bytes to be written |
@description Function write sequential data to the targeted 8-bit TX FIFO register address of the CC1120 single-chip radio transceiver on the ccRF 2 Click board.