spirit 2.0.0.0
|
This file contains API for SPIRIT 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 | spirit_t |
SPIRIT Click context object. More... | |
struct | spirit_cfg_t |
SPIRIT Click configuration object. More... | |
Enumerations | |
enum | spirit_return_value_t { SPIRIT_OK = 0 , SPIRIT_ERROR = -1 } |
SPIRIT Click return value data. More... | |
Functions | |
void | spirit_cfg_setup (spirit_cfg_t *cfg) |
SPIRIT configuration object setup function. | |
err_t | spirit_init (spirit_t *ctx, spirit_cfg_t *cfg) |
SPIRIT initialization function. | |
void | spirit_power_module (spirit_t *ctx, uint8_t power_state) |
Power module function. | |
void | spirit_reset (spirit_t *ctx) |
Software reset function. | |
void | spirit_set_mode (spirit_t *ctx, uint8_t mode) |
Set mode function. | |
void | spirit_generic_write (spirit_t *ctx, char *data_buf, uint16_t len) |
SPIRIT data writing function. | |
int32_t | spirit_generic_read (spirit_t *ctx, char *data_buf, uint16_t max_len) |
SPIRIT data reading function. | |
void | spirit_send_cmd (spirit_t *ctx, char *cmd) |
Send command function. | |
void | spirit_send_cmd_with_parameter (spirit_t *ctx, char *at_cmd_buf, char *param_buf) |
Send command function with parameter. | |
void | spirit_send_cmd_check (spirit_t *ctx, char *at_cmd_buf) |
Check the sent command. | |
void | spirit_send_cmd_parameter_check (spirit_t *ctx, char *at_cmd_buf) |
Check the command parameters. | |
This file contains API for SPIRIT Click Driver.