39#ifdef PREINIT_SUPPORTED
43#ifdef MikroCCoreVersion
44 #if MikroCCoreVersion >= 1
49#include "drv_digital_out.h"
50#include "drv_digital_in.h"
51#include "drv_i2c_master.h"
69#define DTMFDECODER_CMD_BYTE_INPUT 0x00
70#define DTMFDECODER_CMD_BYTE_OUTPUT 0x01
71#define DTMFDECODER_CMD_BYTE_POL_INV 0x02
72#define DTMFDECODER_CMD_BYTE_CONFIG 0x03
91#define DTMFDECODER_SET_DEV_ADDR 0x41
109#define DTMFDECODER_MAP_MIKROBUS( cfg, mikrobus ) \
110 cfg.scl = MIKROBUS( mikrobus, MIKROBUS_SCL ); \
111 cfg.sda = MIKROBUS( mikrobus, MIKROBUS_SDA ); \
112 cfg.pwd = MIKROBUS( mikrobus, MIKROBUS_CS ); \
113 cfg.inh = MIKROBUS( mikrobus, MIKROBUS_RST ); \
114 cfg.std = MIKROBUS( mikrobus, MIKROBUS_INT )
dtmfdecoder_return_value_t
DTMF Decoder Click return value data.
Definition dtmfdecoder.h:167
@ DTMFDECODER_OK
Definition dtmfdecoder.h:168
@ DTMFDECODER_ERROR
Definition dtmfdecoder.h:169
void dtmfdecoder_inhibit_on(dtmfdecoder_t *ctx)
DTMF Decoder inhibit on function.
uint8_t dtmfdecoder_tone_read(dtmfdecoder_t *ctx)
DTMF Decoder read tone function.
err_t dtmfdecoder_init(dtmfdecoder_t *ctx, dtmfdecoder_cfg_t *cfg)
DTMF Decoder initialization function.
void dtmfdecoder_inhibit_off(dtmfdecoder_t *ctx)
DTMF Decoder inhibit off function.
err_t dtmfdecoder_generic_read(dtmfdecoder_t *ctx, uint8_t reg, uint8_t *rx_buf, uint8_t rx_len)
DTMF Decoder I2C reading function.
void dtmfdecoder_powerdown_off(dtmfdecoder_t *ctx)
DTMF Decoder power down off function.
void dtmfdecoder_cfg_setup(dtmfdecoder_cfg_t *cfg)
DTMF Decoder configuration object setup function.
void dtmfdecoder_powerdown_on(dtmfdecoder_t *ctx)
DTMF Decoder power down on function.
err_t dtmfdecoder_generic_write(dtmfdecoder_t *ctx, uint8_t reg, uint8_t *tx_buf, uint8_t tx_len)
DTMF Decoder I2C writing function.
uint8_t dtmfdecoder_delayed_steering_check(dtmfdecoder_t *ctx)
DTMF Decoder check delayed steering function.
void dtmfdecoder_default_cfg(dtmfdecoder_t *ctx)
DTMF Decoder default configuration function.
DTMF Decoder Click configuration object.
Definition dtmfdecoder.h:149
pin_name_t inh
Definition dtmfdecoder.h:154
pin_name_t std
Definition dtmfdecoder.h:155
uint32_t i2c_speed
Definition dtmfdecoder.h:157
pin_name_t pwd
Definition dtmfdecoder.h:153
pin_name_t scl
Definition dtmfdecoder.h:150
pin_name_t sda
Definition dtmfdecoder.h:151
uint8_t i2c_address
Definition dtmfdecoder.h:158
DTMF Decoder Click context object.
Definition dtmfdecoder.h:124
digital_out_t pwd
Definition dtmfdecoder.h:127
digital_out_t inh
Definition dtmfdecoder.h:128
i2c_master_t i2c
Definition dtmfdecoder.h:136
uint8_t slave_address
Definition dtmfdecoder.h:140
digital_in_t std
Definition dtmfdecoder.h:132