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 DRIVER_MAP_MIKROBUS( cfg, mikrobus ) \
66 cfg.in1= MIKROBUS( mikrobus, MIKROBUS_AN ); \
67 cfg.in2= MIKROBUS( mikrobus, MIKROBUS_RST ); \
68 cfg.in3= MIKROBUS( mikrobus, MIKROBUS_CS ); \
69 cfg.in4= MIKROBUS( mikrobus, MIKROBUS_PWM ); \
70 cfg.in5= MIKROBUS( mikrobus, MIKROBUS_INT ); \
71 cfg.in6= MIKROBUS( mikrobus, MIKROBUS_RX ); \
72 cfg.in7= MIKROBUS( mikrobus, MIKROBUS_TX )
81#define DRIVER_RETVAL uint8_t
84#define DRIVER_INIT_ERROR 0xFF
91#define PULSE_WIDTH 3000
#define DRIVER_RETVAL
Definition driver.h:81
void driver_set_in4(driver_t *ctx, uint8_t state)
IN4 Set function.
void driver_set_in3(driver_t *ctx, uint8_t state)
IN3 Set function.
void driver_set_in7(driver_t *ctx, uint8_t state)
IN7 Set function.
void driver_set_in6(driver_t *ctx, uint8_t state)
IN6 Set function.
void driver_set_in2(driver_t *ctx, uint8_t state)
IN2 Set function.
void driver_cfg_setup(driver_cfg_t *cfg)
Config Object Initialization function.
void driver_set_in1(driver_t *ctx, uint8_t state)
IN1 Set function.
void driver_set_in5(driver_t *ctx, uint8_t state)
IN5 Set function.
DRIVER_RETVAL driver_init(driver_t *ctx, driver_cfg_t *cfg)
Initialization function.
Click configuration structure definition.
Definition driver.h:124
pin_name_t in5
Definition driver.h:131
pin_name_t in2
Definition driver.h:128
pin_name_t in1
Definition driver.h:127
pin_name_t in4
Definition driver.h:130
pin_name_t in6
Definition driver.h:132
pin_name_t in7
Definition driver.h:133
pin_name_t in3
Definition driver.h:129
Click ctx object definition.
Definition driver.h:107
digital_out_t in5
Definition driver.h:114
digital_out_t in2
Definition driver.h:111
digital_out_t in7
Definition driver.h:116
digital_out_t in3
Definition driver.h:112
digital_out_t in4
Definition driver.h:113
digital_out_t in1
Definition driver.h:110
digital_out_t in6
Definition driver.h:115