driver 2.0.0.0
driver.h File Reference

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

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

Go to the source code of this file.

Data Structures

struct  driver_t
 Click ctx object definition. More...
 
struct  driver_cfg_t
 Click configuration structure definition. More...
 

Macros

#define DRIVER_MAP_MIKROBUS(cfg, mikrobus)
 
#define DRIVER_RETVAL   uint8_t
 
#define DRIVER_OK   0x00
 
#define DRIVER_INIT_ERROR   0xFF
 
#define PULSE_WIDTH   3000
 
#define ENABLE_IN   0
 
#define DISABLE_IN   1
 

Functions

void driver_cfg_setup (driver_cfg_t *cfg)
 Config Object Initialization function.
 
DRIVER_RETVAL driver_init (driver_t *ctx, driver_cfg_t *cfg)
 Initialization function.
 
void driver_set_in1 (driver_t *ctx, uint8_t state)
 IN1 Set function.
 
void driver_set_in2 (driver_t *ctx, uint8_t state)
 IN2 Set function.
 
void driver_set_in3 (driver_t *ctx, uint8_t state)
 IN3 Set function.
 
void driver_set_in4 (driver_t *ctx, uint8_t state)
 IN4 Set function.
 
void driver_set_in5 (driver_t *ctx, uint8_t state)
 IN5 Set function.
 
void driver_set_in6 (driver_t *ctx, uint8_t state)
 IN6 Set function.
 
void driver_set_in7 (driver_t *ctx, uint8_t state)
 IN7 Set function.
 

Detailed Description

This file contains API for Driver Click driver.