relay4 2.1.0.0
relay4.h File Reference

This file contains API for Relay 4 Click Driver. More...

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

Go to the source code of this file.

Data Structures

struct  relay4_t
 Relay 4 Click context object. More...
 
struct  relay4_cfg_t
 Relay 4 Click configuration object. More...
 

Macros

#define RELAY4_MAP_MIKROBUS(cfg, mikrobus)
 MikroBUS pin mapping.
 

Enumerations

enum  relay4_return_value_t { RELAY4_OK = 0 , RELAY4_ERROR = -1 }
 Relay 4 Click return value data. More...
 

Functions

void relay4_cfg_setup (relay4_cfg_t *cfg)
 Relay 4 configuration object setup function.
 
err_t relay4_init (relay4_t *ctx, relay4_cfg_t *cfg)
 Relay 4 initialization function.
 
void relay4_set_relay1_open (relay4_t *ctx)
 Relay 4 set relay1 open function.
 
void relay4_set_relay1_close (relay4_t *ctx)
 Relay 4 set relay1 close function.
 
void relay4_switch_relay1 (relay4_t *ctx)
 Relay 4 switch relay1 function.
 
void relay4_set_relay2_open (relay4_t *ctx)
 Relay 4 set relay2 open function.
 
void relay4_set_relay2_close (relay4_t *ctx)
 Relay 4 set relay2 close function.
 
void relay4_switch_relay2 (relay4_t *ctx)
 Relay 4 switch relay2 function.
 

Detailed Description

This file contains API for Relay 4 Click Driver.

Enumeration Type Documentation

◆ relay4_return_value_t

Relay 4 Click return value data.

Predefined enum values for driver return values.

Enumerator
RELAY4_OK 
RELAY4_ERROR