relay2 2.0.0.0
relay2.h File Reference

This file contains API for Relay 2 Click driver. More...

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

Go to the source code of this file.

Data Structures

struct  relay2_t
 Click ctx object definition. More...
 
struct  relay2_cfg_t
 Click configuration structure definition. More...
 

Macros

#define RELAY2_MAP_MIKROBUS(cfg, mikrobus)
 
#define RELAY2_RETVAL   uint8_t
 
#define RELAY2_OK   0x70
 
#define RELAY2_INIT_ERROR   0xFF
 

Functions

void relay2_cfg_setup (relay2_cfg_t *cfg)
 Config Object Initialization function.
 
RELAY2_RETVAL relay2_init (relay2_t *ctx, relay2_cfg_t *cfg)
 Initialization function.
 
void relay2_relay2_control (relay2_t *ctx, uint8_t pin_state)
 relay2_relay2Control
 
void relay2_relay1_control (relay2_t *ctx, uint8_t pin_state)
 relay2_relay2Control
 

Detailed Description

This file contains API for Relay 2 Click driver.