opto 2.0.0.0
|
Functions | |
void | opto_cfg_setup (opto_cfg_t *cfg) |
Config Object Initialization function. | |
OPTO_RETVAL | opto_init (opto_t *ctx, opto_cfg_t *cfg) |
Initialization function. | |
uint8_t | opto_check_out1 (opto_t *ctx) |
OUT1 Check function. | |
uint8_t | opto_check_out2 (opto_t *ctx) |
OUT2 Check function. | |
uint8_t | opto_check_out3 (opto_t *ctx) |
OUT3 Check function. | |
uint8_t | opto_check_out4 (opto_t *ctx) |
OUT4 Check function. | |
void opto_cfg_setup | ( | opto_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
uint8_t opto_check_out1 | ( | opto_t * | ctx | ) |
OUT1 Check function.
ctx | Click object |
@description Function checks the state of OUT1 pin.
uint8_t opto_check_out2 | ( | opto_t * | ctx | ) |
OUT2 Check function.
ctx | Click object |
@description Function checks the state of OUT2 pin.
uint8_t opto_check_out3 | ( | opto_t * | ctx | ) |
OUT3 Check function.
ctx | Click object |
@description Function checks the state of OUT3 pin.
uint8_t opto_check_out4 | ( | opto_t * | ctx | ) |
OUT4 Check function.
ctx | Click object |
@description Function checks the state of OUT4 pin.
OPTO_RETVAL opto_init | ( | opto_t * | ctx, |
opto_cfg_t * | cfg ) |
Initialization function.
opto | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.