Go to the documentation of this file.
35 #include "drv_digital_out.h"
52 #define DSP_SET_EFFECT_MEDIUM 0x00
53 #define DSP_SET_EFFECT_CHAMBR7B 0x01
54 #define DSP_SET_EFFECT_ROOM3B 0x02
55 #define DSP_SET_EFFECT_CHAMBER2 0x03
56 #define DSP_SET_EFFECT_REVERS3B 0x04
57 #define DSP_SET_EFFECT_GATED4B 0x05
58 #define DSP_SET_EFFECT_ROOM2A 0x06
59 #define DSP_SET_EFFECT_SPRING3B 0x07
60 #define DSP_SET_EFFECT_PHASER1 0x08
61 #define DSP_SET_EFFECT_FLANGER2 0x09
62 #define DSP_SET_EFFECT_DELAY7 0x0A
63 #define DSP_SET_EFFECT_CHORUS4 0x0B
64 #define DSP_SET_EFFECT_EARLREF4 0x0C
65 #define DSP_SET_EFFECT_AMB4 0x0D
66 #define DSP_SET_EFFECT_DELAY3 0x0E
67 #define DSP_SET_EFFECT_DELAY1 0x0F
80 #define DSP_SET_PIN_STATE_LOW 0x00
81 #define DSP_SET_PIN_STATE_HIGH 0x01
94 #define dsp_retval_t uint8_t
97 #define DSP_ERROR 0xFF
116 #define DSP_MAP_MIKROBUS( cfg, mikrobus ) \
117 cfg.p0 = MIKROBUS( mikrobus, MIKROBUS_AN ); \
118 cfg.rst = MIKROBUS( mikrobus, MIKROBUS_RST ); \
119 cfg.p1 = MIKROBUS( mikrobus, MIKROBUS_CS ); \
120 cfg.p3 = MIKROBUS( mikrobus, MIKROBUS_PWM ); \
121 cfg.p2 = MIKROBUS( mikrobus, MIKROBUS_INT )
void dsp_pin_set_p0(dsp_t *ctx, uint8_t pin_state)
DSP P0 pin setting function.
err_t dsp_init(dsp_t *ctx, dsp_cfg_t *cfg)
DSP initialization function.
dsp_retval_t dsp_set_effect(dsp_t *ctx, uint8_t effects)
DSP reverb and multi-effects setting function.
void dsp_pin_set_p1(dsp_t *ctx, uint8_t pin_state)
DSP P1 pin setting function.
void dsp_reset(dsp_t *ctx)
DSP reset the device function.
void dsp_cfg_setup(dsp_cfg_t *cfg)
DSP configuration object setup function.
void dsp_default_cfg(dsp_t *ctx)
DSP default configuration function.
void dsp_pin_set_p3(dsp_t *ctx, uint8_t pin_state)
DSP P3 pin setting function.
void dsp_power_on(dsp_t *ctx)
DSP power on the device function.
DSP Click configuration object.
Definition: dsp.h:143
#define dsp_retval_t
DSP error code settings.
Definition: dsp.h:93
void dsp_pin_set_p2(dsp_t *ctx, uint8_t pin_state)
DSP P2 pin setting function.
DSP Click context object.
Definition: dsp.h:129