opto5 2.0.0.0
opto5.h File Reference

This file contains API for Opto 5 Click Driver. More...

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

Go to the source code of this file.

Data Structures

struct  opto5_t
 Opto 5 Click context object. More...
 
struct  opto5_cfg_t
 Opto 5 Click configuration object. More...
 

Macros

#define OPTO5_MAP_MIKROBUS(cfg, mikrobus)    cfg.pwm = MIKROBUS( mikrobus, MIKROBUS_PWM )
 MikroBUS pin mapping.
 

Functions

void opto5_cfg_setup (opto5_cfg_t *cfg)
 Opto 5 configuration object setup function.
 
err_t opto5_init (opto5_t *ctx, opto5_cfg_t *cfg)
 Opto 5 initialization function.
 
void opto5_default_cfg (opto5_t *ctx)
 Opto 5 default configuration function.
 
void opto5_pin_set (opto5_t *ctx)
 Opto 5 pin setting function.
 
void opto5_pin_clear (opto5_t *ctx)
 Opto 5 pin clearing function.
 
void opto5_pin_toggle (opto5_t *ctx)
 Opto 5 pin toggling function.
 

Detailed Description

This file contains API for Opto 5 Click Driver.