opto 2.0.0.0
opto.h File Reference

This file contains API for OPTO Click driver. More...

#include "drv_digital_out.h"
#include "drv_digital_in.h"

Go to the source code of this file.

Data Structures

struct  opto_t
 Click ctx object definition. More...
 
struct  opto_cfg_t
 Click configuration structure definition. More...
 

Macros

#define OPTO_MAP_MIKROBUS(cfg, mikrobus)
 
#define OPTO_RETVAL   uint8_t
 
#define OPTO_OK   0x00
 
#define OPTO_INIT_ERROR   0xFF
 

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.
 

Detailed Description

This file contains API for OPTO Click driver.