microwave2 2.0.0.0
|
Functions | |
void | microwave2_cfg_setup (microwave2_cfg_t *cfg) |
Config Object Initialization function. | |
MICROWAVE2_RETVAL | microwave2_init (microwave2_t *ctx, microwave2_cfg_t *cfg) |
Initialization function. | |
void | microwave2_generic_multi_write (microwave2_t *ctx, char *data_buf, uint8_t len) |
Generic multi write function. | |
int32_t | microwave2_generic_read (microwave2_t *ctx, char *data_buf, uint16_t max_len) |
Generic read function. | |
char | microwave2_generic_single_read (microwave2_t *ctx) |
Generic single read function. | |
void | microwave2_generic_single_write (microwave2_t *ctx, char tx_data) |
Generic single write function. | |
uint8_t | microwave2_da_state (microwave2_t *ctx) |
Set pin DA. | |
uint8_t | microwave2_dl_state (microwave2_t *ctx) |
Set pin DL. | |
void microwave2_cfg_setup | ( | microwave2_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
uint8_t microwave2_da_state | ( | microwave2_t * | ctx | ) |
Set pin DA.
ctx | Click object. |
@description This pin will be set to 1 if the object is aproaching.
uint8_t microwave2_dl_state | ( | microwave2_t * | ctx | ) |
Set pin DL.
ctx | Click object. |
@description This pin will be set to 1 if the object is moving away.
void microwave2_generic_multi_write | ( | microwave2_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.
int32_t microwave2_generic_read | ( | microwave2_t * | ctx, |
char * | data_buf, | ||
uint16_t | max_len ) |
Generic read function.
microwave2 | Click object. |
data_buf | Data buffer for read data. |
max_len | The maximum length of data that can be read. |
char microwave2_generic_single_read | ( | microwave2_t * | ctx | ) |
Generic single read function.
ctx | Click object. |
@description This function read one byte data.
void microwave2_generic_single_write | ( | microwave2_t * | ctx, |
char | tx_data ) |
Generic single write function.
ctx | Click object. |
tx_data | Input data |
@description This function write one byte data.
MICROWAVE2_RETVAL microwave2_init | ( | microwave2_t * | ctx, |
microwave2_cfg_t * | cfg ) |
Initialization function.
microwave2 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.