42#ifdef PREINIT_SUPPORTED
46#ifdef MikroCCoreVersion
47 #if MikroCCoreVersion >= 1
52#include "drv_digital_out.h"
64#define TESTER_MAP_MIKROBUS( cfg, mikrobus ) \
65 cfg.an = MIKROBUS( mikrobus, MIKROBUS_AN ); \
66 cfg.rst = MIKROBUS( mikrobus, MIKROBUS_RST ); \
67 cfg.cs = MIKROBUS( mikrobus, MIKROBUS_CS ); \
68 cfg.pwm = MIKROBUS( mikrobus, MIKROBUS_PWM ); \
69 cfg.int_pin = MIKROBUS( mikrobus, MIKROBUS_INT ); \
70 cfg.scl = MIKROBUS( mikrobus, MIKROBUS_SCL ); \
71 cfg.sda = MIKROBUS( mikrobus, MIKROBUS_SDA ); \
72 cfg.sck = MIKROBUS( mikrobus, MIKROBUS_SCK ); \
73 cfg.miso = MIKROBUS( mikrobus, MIKROBUS_MISO ); \
74 cfg.mosi = MIKROBUS( mikrobus, MIKROBUS_MOSI ); \
75 cfg.tx_pin = MIKROBUS( mikrobus, MIKROBUS_RX ); \
76 cfg.rx_pin = MIKROBUS( mikrobus, MIKROBUS_TX )
84#define TESTER_RETVAL uint8_t
87#define TESTER_INIT_ERROR 0xFF
#define TESTER_RETVAL
Definition tester.h:84
TESTER_RETVAL tester_init(tester_t *ctx, tester_cfg_t *cfg)
Initialization function.
void tester_set_pin_high(digital_out_t *pin)
Set pin high function.
void tester_set_pin_low(digital_out_t *pin)
Set pin low function.
void tester_cfg_setup(tester_cfg_t *cfg)
Config Object Initialization function.
Click configuration structure definition.
Definition tester.h:126
pin_name_t sck
Definition tester.h:131
pin_name_t tx_pin
Definition tester.h:135
pin_name_t mosi
Definition tester.h:133
pin_name_t rx_pin
Definition tester.h:136
pin_name_t scl
Definition tester.h:129
pin_name_t int_pin
Definition tester.h:143
pin_name_t pwm
Definition tester.h:142
pin_name_t miso
Definition tester.h:132
pin_name_t sda
Definition tester.h:130
pin_name_t rst
Definition tester.h:141
pin_name_t an
Definition tester.h:140
pin_name_t cs
Definition tester.h:134
Click ctx object definition.
Definition tester.h:101
digital_out_t cs
Definition tester.h:109
digital_out_t sck
Definition tester.h:106
digital_out_t mosi
Definition tester.h:108
digital_out_t pwm
Definition tester.h:117
digital_out_t sda
Definition tester.h:105
digital_out_t int_pin
Definition tester.h:118
digital_out_t rst
Definition tester.h:116
digital_out_t rx_pin
Definition tester.h:111
digital_out_t scl
Definition tester.h:104
digital_out_t tx_pin
Definition tester.h:110
digital_out_t miso
Definition tester.h:107
digital_out_t an
Definition tester.h:115