opto2 2.0.0.0
|
This file contains API for Opto 2 Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
Go to the source code of this file.
Data Structures | |
struct | opto2_t |
Click ctx object definition. More... | |
struct | opto2_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | OPTO2_MAP_MIKROBUS(cfg, mikrobus) |
#define | OPTO2_RETVAL uint8_t |
#define | OPTO2_OK 0x00 |
#define | OPTO2_INIT_ERROR 0xFF |
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. | |
This file contains API for Opto 2 Click driver.