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_OK 0 |
#define | OPTO3_ERROR -1 |
#define | OPTO3_HIGH 0x01 |
#define | OPTO3_LOW 0x00 |
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. | |
This file contains API for Opto 3 Click driver.