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 CAPEXTEND3_MAP_MIKROBUS( cfg, mikrobus ) \
66 cfg.to0= MIKROBUS( mikrobus, MIKROBUS_AN ); \
67 cfg.to1= MIKROBUS( mikrobus, MIKROBUS_RST ); \
68 cfg.to2= MIKROBUS( mikrobus, MIKROBUS_CS ); \
69 cfg.to3= MIKROBUS( mikrobus, MIKROBUS_PWM ); \
70 cfg.to4= MIKROBUS( mikrobus, MIKROBUS_INT )
77#define CAPEXTEND3_RETVAL uint8_t
79#define CAPEXTEND3_OK 0x00
80#define CAPEXTEND3_INIT_ERROR 0xFF
#define CAPEXTEND3_RETVAL
Definition capextend3.h:77
CAPEXTEND3_RETVAL capextend3_init(capextend3_t *ctx, capextend3_cfg_t *cfg)
Initialization function.
uint8_t capextend3_touch_1(capextend3_t *ctx)
Function reads state of RST pin.
uint8_t capextend3_touch_4(capextend3_t *ctx)
Function reads state of PWM pin.
void capextend3_cfg_setup(capextend3_cfg_t *cfg)
Config Object Initialization function.
uint8_t capextend3_touch_2(capextend3_t *ctx)
Function reads state of CS pin.
uint8_t capextend3_touch_0(capextend3_t *ctx)
Function reads state of AN pin.
uint8_t capextend3_touch_3(capextend3_t *ctx)
Function reads state of INT pin.
Click configuration structure definition.
Definition capextend3.h:109
pin_name_t to1
Definition capextend3.h:113
pin_name_t to3
Definition capextend3.h:115
pin_name_t to0
Definition capextend3.h:112
pin_name_t to2
Definition capextend3.h:114
pin_name_t to4
Definition capextend3.h:116
Click ctx object definition.
Definition capextend3.h:94
digital_in_t to2
Definition capextend3.h:99
digital_in_t to1
Definition capextend3.h:98
digital_in_t to3
Definition capextend3.h:100
digital_in_t to4
Definition capextend3.h:101
digital_in_t to0
Definition capextend3.h:97