iqrf 2.0.0.0
|
Functions | |
void | iqrf_cfg_setup (iqrf_cfg_t *cfg) |
Config Object Initialization function. | |
IQRF_RETVAL | iqrf_init (iqrf_t *ctx, iqrf_cfg_t *cfg) |
Initialization function. | |
void | iqrf_default_cfg (iqrf_t *ctx) |
Click Default Configuration function. | |
void | iqrf_generic_multi_write (iqrf_t *ctx, char *data_buf, uint8_t len) |
Generic multi write function. | |
void | iqrf_generic_multi_read (iqrf_t *ctx, char *data_buf, uint8_t len) |
Generic multi read function. | |
char | iqrf_generic_single_read (iqrf_t *ctx) |
Generic single read function. | |
void | iqrf_generic_single_write (iqrf_t *ctx, char tx_data) |
Generic single write function. | |
uint8_t | iqrf_get_interrupt (iqrf_t *ctx) |
Interrupt function. | |
void | iqrf_hw_reset (iqrf_t *ctx) |
Hardware reset function. | |
void iqrf_cfg_setup | ( | iqrf_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void iqrf_default_cfg | ( | iqrf_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for iqRF click.
Hardware reset.
void iqrf_generic_multi_read | ( | iqrf_t * | ctx, |
char * | data_buf, | ||
uint8_t | len ) |
Generic multi read function.
ctx | Click object. |
data_buf | Output data buffer. |
len | Number of the bytes in data buffer. |
@description This function reads data.
void iqrf_generic_multi_write | ( | iqrf_t * | ctx, |
char * | data_buf, | ||
uint8_t | len ) |
Generic multi write function.
ctx | Click object. |
data_buf | Input data buffer |
len | Number of the bytes in the data buffer |
@description This function writes data.
char iqrf_generic_single_read | ( | iqrf_t * | ctx | ) |
Generic single read function.
ctx | Click object. |
@description This function read one byte data.
void iqrf_generic_single_write | ( | iqrf_t * | ctx, |
char | tx_data ) |
Generic single write function.
ctx | Click object. |
tx_data | Input data |
@description This function write one byte data.
uint8_t iqrf_get_interrupt | ( | iqrf_t * | ctx | ) |
Interrupt function.
ctx | Click object. @return INT pin state |
0 - No active interrupt.
1 - Active interrupt.
@description This function checks if interrupt is active.
void iqrf_hw_reset | ( | iqrf_t * | ctx | ) |
Hardware reset function.
ctx | Click object. |
@description This function performs hardware reset.
IQRF_RETVAL iqrf_init | ( | iqrf_t * | ctx, |
iqrf_cfg_t * | cfg ) |
Initialization function.
iqrf | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.