solidswitch2 2.1.0.0
|
This file contains API for SolidSwitch 2 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"
#include "spi_specifics.h"
Go to the source code of this file.
Data Structures | |
struct | solidswitch2_t |
SolidSwitch 2 Click context object. More... | |
struct | solidswitch2_cfg_t |
SolidSwitch 2 Click configuration object. More... | |
Enumerations | |
enum | solidswitch2_return_value_t { SOLIDSWITCH2_OK = 0 , SOLIDSWITCH2_ERROR = -1 } |
SolidSwitch 2 Click return value data. More... | |
Functions | |
void | solidswitch2_cfg_setup (solidswitch2_cfg_t *cfg) |
SolidSwitch 2 configuration object setup function. | |
err_t | solidswitch2_init (solidswitch2_t *ctx, solidswitch2_cfg_t *cfg) |
SolidSwitch 2 initialization function. | |
err_t | solidswitch2_default_cfg (solidswitch2_t *ctx) |
SolidSwitch 2 default configuration function. | |
err_t | solidswitch2_write_register (solidswitch2_t *ctx, uint8_t reg, uint8_t data_in) |
SolidSwitch 2 data writing function. | |
err_t | solidswitch2_read_register (solidswitch2_t *ctx, uint8_t reg, uint8_t *data_out) |
SolidSwitch 2 data reading function. | |
err_t | solidswitch2_check_communication (solidswitch2_t *ctx) |
SolidSwitch 2 check communication function. | |
void | solidswitch2_set_idle_pin (solidswitch2_t *ctx, uint8_t state) |
SolidSwitch 2 set idle pin function. | |
void | solidswitch2_set_in0_pin (solidswitch2_t *ctx, uint8_t state) |
SolidSwitch 2 set in0 pin function. | |
void | solidswitch2_set_in1_pin (solidswitch2_t *ctx, uint8_t state) |
SolidSwitch 2 set in1 pin function. | |
void | solidswitch2_toggle_in0_pin (solidswitch2_t *ctx) |
SolidSwitch 2 toggle in0 pin function. | |
void | solidswitch2_toggle_in1_pin (solidswitch2_t *ctx) |
SolidSwitch 2 toggle in1 pin function. | |
err_t | solidswitch2_soft_reset (solidswitch2_t *ctx) |
SolidSwitch 2 soft reset function. | |
This file contains API for SolidSwitch 2 Click Driver.