spirit2
2.0.0.0
|
This file contains API for SPIRIT 2 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 | spirit2_t |
SPIRIT 2 Click context object. More... | |
struct | spirit2_cfg_t |
SPIRIT 2 Click configuration object. More... | |
Enumerations | |
enum | spirit2_return_value_t { SPIRIT2_OK = 0, SPIRIT2_ERROR = -1 } |
SPIRIT 2 Click return value data. More... | |
Functions | |
void | spirit2_cfg_setup (spirit2_cfg_t *cfg) |
SPIRIT 2 configuration object setup function. More... | |
err_t | spirit2_init (spirit2_t *ctx, spirit2_cfg_t *cfg) |
SPIRIT 2 initialization function. More... | |
void | spirit2_power_module (spirit2_t *ctx, uint8_t power_state) |
Power module function. More... | |
void | spirit2_reset (spirit2_t *ctx) |
Software reset function. More... | |
void | spirit2_set_mode (spirit2_t *ctx, uint8_t mode) |
Set mode function. More... | |
void | spirit2_generic_write (spirit2_t *ctx, char *data_buf, uint16_t len) |
SPIRIT 2 data writing function. More... | |
int32_t | spirit2_generic_read (spirit2_t *ctx, char *data_buf, uint16_t max_len) |
SPIRIT 2 data reading function. More... | |
void | spirit2_send_cmd (spirit2_t *ctx, char *cmd) |
Send command function. More... | |
void | spirit2_send_cmd_with_parameter (spirit2_t *ctx, char *at_cmd_buf, char *param_buf) |
Send command function with parameter. More... | |
void | spirit2_send_cmd_check (spirit2_t *ctx, char *at_cmd_buf) |
Check the sent command. More... | |
void | spirit2_send_cmd_parameter_check (spirit2_t *ctx, char *at_cmd_buf) |
Check the command parameters. More... | |
This file contains API for SPIRIT 2 Click Driver.