42#ifdef PREINIT_SUPPORTED
46#ifdef MikroCCoreVersion
47 #if MikroCCoreVersion >= 1
52#include "drv_digital_out.h"
53#include "drv_digital_in.h"
65#define RELAY3_MAP_MIKROBUS( cfg, mikrobus ) \
66 cfg.re1= MIKROBUS( mikrobus, MIKROBUS_RST ); \
67 cfg.re2= MIKROBUS( mikrobus, MIKROBUS_CS );
74#define RELAY3_RETVAL uint8_t
77#define RELAY3_INIT_ERROR 0xFF
84#define RELAY3_RELAY_1 0x01
85#define RELAY3_RELAY_2 0x02
86#define RELAY3_BOTH_RELAYS 0x03
93#define RELAY3_SECONDS 0x00
94#define RELAY3_MILISECONDS 0x01
#define RELAY3_RETVAL
Definition relay3.h:74
void relay3_relay_on(relay3_t *ctx, uint8_t relay)
Relay on function.
RELAY3_RETVAL relay3_init(relay3_t *ctx, relay3_cfg_t *cfg)
Initialization function.
void relay3_relay_off(relay3_t *ctx, uint8_t relay)
Relay off function.
void relay3_cfg_setup(relay3_cfg_t *cfg)
Config Object Initialization function.
void relay3_on_delay(relay3_t *ctx, uint8_t relay, uint8_t units, uint16_t time)
Relay on with delay function.
Click configuration structure definition.
Definition relay3.h:120
pin_name_t re1
Definition relay3.h:123
pin_name_t re2
Definition relay3.h:124
Click ctx object definition.
Definition relay3.h:108
digital_out_t re1
Definition relay3.h:111
digital_out_t re2
Definition relay3.h:112