opto4 2.0.0.0
opto4.h File Reference

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

#include "drv_digital_out.h"

Go to the source code of this file.

Data Structures

struct  opto4_t
 Click ctx object definition. More...
 
struct  opto4_cfg_t
 Click configuration structure definition. More...
 

Macros

#define OPTO4_MAP_MIKROBUS(cfg, mikrobus)
 
#define OPTO4_RETVAL   uint8_t
 
#define OPTO4_OK   0x00
 
#define OPTO4_INIT_ERROR   0xFF
 
#define OPTO4_OUTPUT_ENABLE   0x01
 
#define OPTO4_OUTPUT_DISABLE   0x00
 

Functions

void opto4_cfg_setup (opto4_cfg_t *cfg)
 Config Object Initialization function.
 
OPTO4_RETVAL opto4_init (opto4_t *ctx, opto4_cfg_t *cfg)
 Initialization function.
 
void opto4_default_cfg (opto4_t *ctx)
 Click Default Configuration function.
 
void opto4_output_enable (opto4_t *ctx, uint8_t enable)
 Function for output enable or disable.
 

Detailed Description

This file contains API for OPTO 4 Click driver.