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 C2X2KEY_MAP_MIKROBUS( cfg, mikrobus ) \
66 cfg.t1o = MIKROBUS( mikrobus, MIKROBUS_AN ); \
67 cfg.t2o = MIKROBUS( mikrobus, MIKROBUS_RST ); \
68 cfg.t3o = MIKROBUS( mikrobus, MIKROBUS_CS ); \
69 cfg.t4o = MIKROBUS( mikrobus, MIKROBUS_PWM ); \
70 cfg.tint = MIKROBUS( mikrobus, MIKROBUS_INT )
77#define C2X2KEY_RETVAL uint8_t
79#define C2X2KEY_OK 0x00
80#define C2X2KEY_INIT_ERROR 0xFF
130 // End constants group
139 // End variable group
#define C2X2KEY_RETVAL
Definition c2x2key.h:77
void c2x2key_default_cfg(c2x2key_t *ctx)
Click Default Configuration function.
uint8_t c2x2key_t1_state(c2x2key_t *ctx)
Taster 1 state function.
C2X2KEY_RETVAL c2x2key_init(c2x2key_t *ctx, c2x2key_cfg_t *cfg)
Initialization function.
uint8_t c2x2key_taster_pressed(c2x2key_t *ctx)
Taster Pressed function.
uint8_t c2x2key_t2_state(c2x2key_t *ctx)
Taster 2 state function.
void c2x2key_cfg_setup(c2x2key_cfg_t *cfg)
Config Object Initialization function.
uint8_t c2x2key_t4_state(c2x2key_t *ctx)
Taster 4 state function.
uint8_t c2x2key_t3_state(c2x2key_t *ctx)
Taster 3 state function.
Click configuration structure definition.
Definition c2x2key.h:110
pin_name_t t2o
Definition c2x2key.h:114
pin_name_t tint
Definition c2x2key.h:117
pin_name_t t3o
Definition c2x2key.h:115
pin_name_t t4o
Definition c2x2key.h:116
pin_name_t t1o
Definition c2x2key.h:113
Click ctx object definition.
Definition c2x2key.h:95
digital_in_t t4o
Definition c2x2key.h:101
digital_in_t t2o
Definition c2x2key.h:99
digital_in_t t3o
Definition c2x2key.h:100
digital_in_t t1o
Definition c2x2key.h:98
digital_in_t tint
Definition c2x2key.h:102