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 RELAY2_MAP_MIKROBUS( cfg, mikrobus ) \
66 cfg.an = MIKROBUS( mikrobus, MIKROBUS_AN ); \
67 cfg.pwm = MIKROBUS( mikrobus, MIKROBUS_PWM );
74#define RELAY2_RETVAL uint8_t
77#define RELAY2_INIT_ERROR 0xFF
#define RELAY2_RETVAL
Definition relay2.h:74
void relay2_relay1_control(relay2_t *ctx, uint8_t pin_state)
relay2_relay2Control
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_cfg_setup(relay2_cfg_t *cfg)
Config Object Initialization function.
Click configuration structure definition.
Definition relay2.h:103
pin_name_t pwm
Definition relay2.h:107
pin_name_t an
Definition relay2.h:106
Click ctx object definition.
Definition relay2.h:91
digital_out_t pwm
Definition relay2.h:95
digital_out_t an
Definition relay2.h:94