Go to the documentation of this file.
28 #ifndef HEADPHONEAMP3_H
29 #define HEADPHONEAMP3_H
35 #include "mikrosdk_version.h"
38 #if mikroSDK_GET_VERSION < 20800ul
39 #include "rcu_delays.h"
45 #include "drv_digital_out.h"
46 #include "drv_digital_in.h"
63 #define HEADPHONEAMP3_ENABLE 0x01
64 #define HEADPHONEAMP3_DISABLE 0x00
82 #define HEADPHONEAMP3_MAP_MIKROBUS( cfg, mikrobus ) \
83 cfg.enp = MIKROBUS( mikrobus, MIKROBUS_RST ); \
84 cfg.ena = MIKROBUS( mikrobus, MIKROBUS_PWM )
193 #endif // HEADPHONEAMP3_H
@ HEADPHONEAMP3_OK
Definition: headphoneamp3.h:117
digital_out_t ena
Definition: headphoneamp3.h:96
pin_name_t ena
Definition: headphoneamp3.h:107
headphoneamp3_return_value_t
Headphone AMP 3 Click return value data.
Definition: headphoneamp3.h:116
Headphone AMP 3 Click configuration object.
Definition: headphoneamp3.h:105
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:94
@ HEADPHONEAMP3_ERROR
Definition: headphoneamp3.h:118
err_t headphoneamp3_init(headphoneamp3_t *ctx, headphoneamp3_cfg_t *cfg)
Headphone AMP 3 initialization function.
digital_out_t enp
Definition: headphoneamp3.h:95
void headphoneamp3_cfg_setup(headphoneamp3_cfg_t *cfg)
Headphone AMP 3 configuration object setup function.
pin_name_t enp
Definition: headphoneamp3.h:106
void headphoneamp3_default_cfg(headphoneamp3_t *ctx)
Headphone AMP 3 default configuration function.