monarchadapter 2.0.0.0
|
This file contains API for Monarch Adapter Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_uart.h"
Go to the source code of this file.
Data Structures | |
struct | monarchadapter_t |
Click ctx object definition. More... | |
struct | monarchadapter_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | MONARCHADAPTER_MAP_MIKROBUS(cfg, mikrobus) |
#define | MONARCHADAPTER_RETVAL uint8_t |
#define | MONARCHADAPTER_OK 0x00 |
#define | MONARCHADAPTER_INIT_ERROR 0xFF |
#define | DRV_RX_BUFFER_SIZE 600 |
#define | DRV_TX_BUFFER_SIZE 100 |
Typedefs | |
typedef uint8_t | monarchadapter_error_t |
Error type. | |
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. | |
This file contains API for Monarch Adapter Click driver.