39#ifdef PREINIT_SUPPORTED
43#ifdef MikroCCoreVersion
44 #if MikroCCoreVersion >= 1
49#include "drv_digital_out.h"
50#include "drv_digital_in.h"
67#define EASYPULL_PIN_STATE_HIGH 0x01
68#define EASYPULL_PIN_STATE_LOW 0x00
86#define EASYPULL_MAP_MIKROBUS( cfg, mikrobus ) \
87 cfg.an = MIKROBUS( mikrobus, MIKROBUS_AN ); \
88 cfg.rst = MIKROBUS( mikrobus, MIKROBUS_RST ); \
89 cfg.cs = MIKROBUS( mikrobus, MIKROBUS_CS ); \
90 cfg.pwm = MIKROBUS( mikrobus, MIKROBUS_PWM ); \
91 cfg.int_pin = MIKROBUS( mikrobus, MIKROBUS_INT )
easypull_return_value_t
EasyPull Click return value data.
Definition easypull.h:129
@ EASYPULL_ERROR
Definition easypull.h:131
@ EASYPULL_OK
Definition easypull.h:130
err_t easypull_init(easypull_t *ctx, easypull_cfg_t *cfg)
EasyPull initialization function.
uint8_t easypull_get_cs_pin(easypull_t *ctx)
EasyPull CS pin reading function.
uint8_t easypull_get_pwm_pin(easypull_t *ctx)
EasyPull PWM pin reading function.
uint8_t easypull_get_an_pin(easypull_t *ctx)
EasyPull AN pin reading function.
uint8_t easypull_get_rst_pin(easypull_t *ctx)
EasyPull RST pin reading function.
uint8_t easypull_get_int_pin(easypull_t *ctx)
EasyPull INT pin reading function.
void easypull_cfg_setup(easypull_cfg_t *cfg)
EasyPull configuration object setup function.
EasyPull Click configuration object.
Definition easypull.h:115
pin_name_t int_pin
Definition easypull.h:120
pin_name_t pwm
Definition easypull.h:119
pin_name_t rst
Definition easypull.h:117
pin_name_t an
Definition easypull.h:116
pin_name_t cs
Definition easypull.h:118
EasyPull Click context object.
Definition easypull.h:101
digital_in_t cs
Definition easypull.h:104
digital_in_t pwm
Definition easypull.h:105
digital_in_t int_pin
Definition easypull.h:106
digital_in_t rst
Definition easypull.h:103
digital_in_t an
Definition easypull.h:102