monarchadapter 2.0.0.0
|
Functions | |
void | monarchadapter_cfg_setup (monarchadapter_cfg_t *cfg) |
Config Object Initialization function. | |
MONARCHADAPTER_RETVAL | monarchadapter_init (monarchadapter_t *ctx, monarchadapter_cfg_t *cfg) |
Initialization function. | |
void | monarchadapter_power_on (monarchadapter_t *ctx) |
Monarch Adapter power on. | |
void | monarchadapter_set_rst_pin (monarchadapter_t *ctx, uint8_t state) |
Set RST ( reset ) pin state. | |
void | monarchadapter_set_rts_pin (monarchadapter_t *ctx, uint8_t state) |
Set RTS ( cs ) pin state. | |
uint8_t | monarchadapter_get_int_pin (monarchadapter_t *ctx) |
Get INT pin state. | |
uint8_t | monarchadapter_get_rng_pin (monarchadapter_t *ctx) |
Get RNG ( an ) pin state. | |
void | monarchadapter_generic_write (monarchadapter_t *ctx, char *data_buf, uint16_t len) |
Generic write function. | |
int32_t | monarchadapter_generic_read (monarchadapter_t *ctx, char *data_buf, uint16_t max_len) |
Generic read function. | |
void | monarchadapter_send_command (monarchadapter_t *ctx, char *command) |
Function for send command. | |
void monarchadapter_cfg_setup | ( | monarchadapter_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
int32_t monarchadapter_generic_read | ( | monarchadapter_t * | ctx, |
char * | data_buf, | ||
uint16_t | max_len ) |
Generic read function.
monarchadapter | Click object. |
data_buf | Data buffer for read data. |
max_len | The maximum length of data that can be read. |
void monarchadapter_generic_write | ( | monarchadapter_t * | ctx, |
char * | data_buf, | ||
uint16_t | len ) |
Generic write function.
monarchadapter | Click object. |
data_buf | Data buffer for sends. |
len | Number of bytes for sends. |
uint8_t monarchadapter_get_int_pin | ( | monarchadapter_t * | ctx | ) |
Get INT pin state.
ctx | Click object. |
uint8_t monarchadapter_get_rng_pin | ( | monarchadapter_t * | ctx | ) |
Get RNG ( an ) pin state.
ctx | Click object. |
MONARCHADAPTER_RETVAL monarchadapter_init | ( | monarchadapter_t * | ctx, |
monarchadapter_cfg_t * | cfg ) |
Initialization function.
monarchadapter | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void monarchadapter_power_on | ( | monarchadapter_t * | ctx | ) |
Monarch Adapter power on.
This function resets the chip on Monarch Adapter click.
[in] | ctx | : Click context object. See monarchadapter_t object definition for detailed explanation. |
void monarchadapter_send_command | ( | monarchadapter_t * | ctx, |
char * | command ) |
Function for send command.
ctx | Click object. |
command | Command to send. |
void monarchadapter_set_rst_pin | ( | monarchadapter_t * | ctx, |
uint8_t | state ) |
Set RST ( reset ) pin state.
ctx | Click object. |
statte | Pin state ( 1 or 0 ). |
void monarchadapter_set_rts_pin | ( | monarchadapter_t * | ctx, |
uint8_t | state ) |
Set RTS ( cs ) pin state.
ctx | Click object. |
statte | Pin state ( 1 or 0 ). |