opto3 2.0.0.0
|
Functions | |
void | opto3_cfg_setup (opto3_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | opto3_init (opto3_t *ctx, opto3_cfg_t *cfg) |
Initialization function. | |
uint8_t | opto3_get_in1 (opto3_t *ctx) |
Get input 1. | |
uint8_t | opto3_get_in2 (opto3_t *ctx) |
Get input 2. | |
void | opto3_set_out1 (opto3_t *ctx, uint8_t state) |
Set output 1. | |
void | opto3_set_out2 (opto3_t *ctx, uint8_t state) |
Set output 2. | |
void opto3_cfg_setup | ( | opto3_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
This function initializes click configuration structure to init state.
uint8_t opto3_get_in1 | ( | opto3_t * | ctx | ) |
Get input 1.
ctx | Click object. |
This function gets input 1 pin state.
uint8_t opto3_get_in2 | ( | opto3_t * | ctx | ) |
Get input 2.
ctx | Click object. |
This function gets input 2 pin state.
err_t opto3_init | ( | opto3_t * | ctx, |
opto3_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
This function initializes all necessary pins and peripherals used for this click.
void opto3_set_out1 | ( | opto3_t * | ctx, |
uint8_t | state ) |
Set output 1.
ctx | Click object. |
state | Pin state |
This function sets output 1 pin state.
void opto3_set_out2 | ( | opto3_t * | ctx, |
uint8_t | state ) |
Set output 2.
ctx | Click object. |
state | Pin state |
This function sets output 2 pin state.