opto2 2.0.0.0
|
Functions | |
void | opto2_cfg_setup (opto2_cfg_t *cfg) |
Config Object Initialization function. | |
OPTO2_RETVAL | opto2_init (opto2_t *ctx, opto2_cfg_t *cfg) |
Initialization function. | |
uint8_t | opto2_check_out1 (opto2_t *ctx) |
OUT1 Check function. | |
uint8_t | opto2_check_out2 (opto2_t *ctx) |
OUT2 Check function. | |
uint8_t | opto2_check_out3 (opto2_t *ctx) |
OUT3 Check function. | |
uint8_t | opto2_check_out4 (opto2_t *ctx) |
OUT4 Check function. | |
void opto2_cfg_setup | ( | opto2_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
uint8_t opto2_check_out1 | ( | opto2_t * | ctx | ) |
OUT1 Check function.
ctx | Click object. |
@description This function checks the state of OUT1 pin.
uint8_t opto2_check_out2 | ( | opto2_t * | ctx | ) |
OUT2 Check function.
ctx | Click object. |
@description This function checks the state of OUT2 pin.
uint8_t opto2_check_out3 | ( | opto2_t * | ctx | ) |
OUT3 Check function.
ctx | Click object. |
@description This function checks the state of OUT3 pin..
uint8_t opto2_check_out4 | ( | opto2_t * | ctx | ) |
OUT4 Check function.
ctx | Click object. |
@description This function checks the state of OUT4 pin..
OPTO2_RETVAL opto2_init | ( | opto2_t * | ctx, |
opto2_cfg_t * | cfg ) |
Initialization function.
opto2 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.