Go to the documentation of this file.
28 #ifndef HEADPHONEAMP3_H
29 #define HEADPHONEAMP3_H
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 HEADPHONEAMP3_ENABLE 0x01
68 #define HEADPHONEAMP3_DISABLE 0x00
86 #define HEADPHONEAMP3_MAP_MIKROBUS( cfg, mikrobus ) \
87 cfg.enp = MIKROBUS( mikrobus, MIKROBUS_RST ); \
88 cfg.ena = MIKROBUS( mikrobus, MIKROBUS_PWM )
197 #endif // HEADPHONEAMP3_H
@ HEADPHONEAMP3_OK
Definition: headphoneamp3.h:121
digital_out_t ena
Definition: headphoneamp3.h:100
pin_name_t ena
Definition: headphoneamp3.h:111
headphoneamp3_return_value_t
Headphone AMP 3 Click return value data.
Definition: headphoneamp3.h:120
Headphone AMP 3 Click configuration object.
Definition: headphoneamp3.h:109
void headphoneamp3_enable_amp(headphoneamp3_t *ctx, uint8_t state)
Headphone AMP 3 amp pin setting function.
void headphoneamp3_enable_power(headphoneamp3_t *ctx, uint8_t state)
Headphone AMP 3 power pin setting function.
Headphone AMP 3 Click context object.
Definition: headphoneamp3.h:98
@ HEADPHONEAMP3_ERROR
Definition: headphoneamp3.h:122
err_t headphoneamp3_init(headphoneamp3_t *ctx, headphoneamp3_cfg_t *cfg)
Headphone AMP 3 initialization function.
digital_out_t enp
Definition: headphoneamp3.h:99
void headphoneamp3_cfg_setup(headphoneamp3_cfg_t *cfg)
Headphone AMP 3 configuration object setup function.
pin_name_t enp
Definition: headphoneamp3.h:110
void headphoneamp3_default_cfg(headphoneamp3_t *ctx)
Headphone AMP 3 default configuration function.