Go to the documentation of this file.
35 #include "drv_digital_out.h"
36 #include "drv_digital_in.h"
37 #include "drv_i2c_master.h"
55 #define DTMFDECODER_CMD_BYTE_INPUT 0x00
56 #define DTMFDECODER_CMD_BYTE_OUTPUT 0x01
57 #define DTMFDECODER_CMD_BYTE_POL_INV 0x02
58 #define DTMFDECODER_CMD_BYTE_CONFIG 0x03
77 #define DTMFDECODER_SET_DEV_ADDR 0x41
95 #define DTMFDECODER_MAP_MIKROBUS( cfg, mikrobus ) \
96 cfg.scl = MIKROBUS( mikrobus, MIKROBUS_SCL ); \
97 cfg.sda = MIKROBUS( mikrobus, MIKROBUS_SDA ); \
98 cfg.pwd = MIKROBUS( mikrobus, MIKROBUS_CS ); \
99 cfg.inh = MIKROBUS( mikrobus, MIKROBUS_RST ); \
100 cfg.std = MIKROBUS( mikrobus, MIKROBUS_INT )
126 uint8_t slave_address;
326 #endif // DTMFDECODER_H
err_t dtmfdecoder_init(dtmfdecoder_t *ctx, dtmfdecoder_cfg_t *cfg)
DTMF Decoder initialization function.
uint8_t dtmfdecoder_tone_read(dtmfdecoder_t *ctx)
DTMF Decoder read tone function.
void dtmfdecoder_cfg_setup(dtmfdecoder_cfg_t *cfg)
DTMF Decoder configuration object setup 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.
void dtmfdecoder_inhibit_on(dtmfdecoder_t *ctx)
DTMF Decoder inhibit on function.
void dtmfdecoder_inhibit_off(dtmfdecoder_t *ctx)
DTMF Decoder inhibit off function.
void dtmfdecoder_powerdown_on(dtmfdecoder_t *ctx)
DTMF Decoder power down on function.
DTMF Decoder Click configuration object.
Definition: dtmfdecoder.h:133
Definition: dtmfdecoder.h:154
void dtmfdecoder_powerdown_off(dtmfdecoder_t *ctx)
DTMF Decoder power down 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.
DTMF Decoder Click context object.
Definition: dtmfdecoder.h:108
dtmfdecoder_return_value_t
DTMF Decoder Click return value data.
Definition: dtmfdecoder.h:151
Definition: dtmfdecoder.h:153