opto3
2.0.0.0
|
This file contains API for Opto 3 Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
Go to the source code of this file.
Data Structures | |
struct | opto3_t |
Click ctx object definition. More... | |
struct | opto3_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | OPTO3_MAP_MIKROBUS(cfg, mikrobus) |
#define | OPTO3_RETVAL uint8_t |
#define | OPTO3_STATE uint8_t |
#define | OPTO3_SWITCH uint8_t |
#define | OPTO3_OK 0x00 |
#define | OPTO3_INIT_ERROR 0xFF |
#define | OPTO3_HIGH 0x01 |
#define | OPTO3_LOW 0x00 |
#define | OPTO3_ON 0x01 |
#define | OPTO3_OFF 0x00 |
Functions | |
void | opto3_cfg_setup (opto3_cfg_t *cfg) |
Config Object Initialization function. More... | |
OPTO3_RETVAL | opto3_init (opto3_t *ctx, opto3_cfg_t *cfg) |
Initialization function. More... | |
OPTO3_STATE | opto3_get_in1 (opto3_t *ctx) |
Gets input. More... | |
OPTO3_STATE | opto3_get_in2 (opto3_t *ctx) |
Gets input. More... | |
void | opto3_set_out1 (opto3_t *ctx, OPTO3_SWITCH state) |
Gets output. More... | |
void | opto3_set_out2 (opto3_t *ctx, OPTO3_SWITCH state) |
Gets output. More... | |
This file contains API for Opto 3 Click driver.