signalrelay 2.0.0.0
signalrelay.h File Reference

This file contains API for Signal Realy Click driver. More...

#include "drv_digital_out.h"

Go to the source code of this file.

Data Structures

struct  signalrelay_t
 Click ctx object definition. More...
 
struct  signalrelay_cfg_t
 Click configuration structure definition. More...
 

Macros

#define SIGNALRELAY_MAP_MIKROBUS(cfg, mikrobus)
 
#define SIGNALRELAY_RETVAL   uint8_t
 
#define SIGNALRELAY_OK   0x00
 
#define SIGNALRELAY_INIT_ERROR   0xFF
 
#define SIGNALRELAY_RELAY_1   1
 
#define SIGNALRELAY_RELAY_2   2
 
#define SIGNALRELAY_RELAY_3   3
 
#define SIGNALRELAY_RELAY_4   4
 
#define SIGNALRELAY_STATE_ON   0x01
 
#define SIGNALRELAY_STATE_OFF   0x00
 

Functions

void signalrelay_cfg_setup (signalrelay_cfg_t *cfg)
 Config Object Initialization function.
 
SIGNALRELAY_RETVAL signalrelay_init (signalrelay_t *ctx, signalrelay_cfg_t *cfg)
 Initialization function.
 
void signalrelay_default_cfg (signalrelay_t *ctx)
 Click Default Configuration function.
 
void signalrelay_relay_state (signalrelay_t *ctx, uint8_t relay, uint8_t state)
 Relays state.
 

Detailed Description

This file contains API for Signal Realy Click driver.