39#ifdef PREINIT_SUPPORTED
43#ifdef MikroCCoreVersion
44 #if MikroCCoreVersion >= 1
49#include "drv_digital_out.h"
50#include "drv_digital_in.h"
72#define RELAY4_MAP_MIKROBUS( cfg, mikrobus ) \
73 cfg.rl1 = MIKROBUS( mikrobus, MIKROBUS_RST ); \
74 cfg.rl2 = MIKROBUS( mikrobus, MIKROBUS_PWM );
void relay4_set_relay2_close(relay4_t *ctx)
Relay 4 set relay2 close function.
void relay4_set_relay2_open(relay4_t *ctx)
Relay 4 set relay2 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_relay1_open(relay4_t *ctx)
Relay 4 set relay1 open function.
void relay4_cfg_setup(relay4_cfg_t *cfg)
Relay 4 configuration object setup function.
void relay4_switch_relay2(relay4_t *ctx)
Relay 4 switch relay2 function.
err_t relay4_init(relay4_t *ctx, relay4_cfg_t *cfg)
Relay 4 initialization function.
relay4_return_value_t
Relay 4 Click return value data.
Definition relay4.h:106
@ RELAY4_OK
Definition relay4.h:107
@ RELAY4_ERROR
Definition relay4.h:108
Relay 4 Click configuration object.
Definition relay4.h:95
pin_name_t rl1
Definition relay4.h:96
pin_name_t rl2
Definition relay4.h:97
Relay 4 Click context object.
Definition relay4.h:84
digital_out_t rl2
Definition relay4.h:86
digital_out_t rl1
Definition relay4.h:85