evc 2.0.0.0
|
Functions | |
void | evc_cfg_setup (evc_cfg_t *cfg) |
Config Object Initialization function. | |
EVC_RETVAL | evc_init (evc_t *ctx, evc_cfg_t *cfg) |
Initialization function. | |
void | evc_default_cfg (evc_t *ctx) |
Click Default Configuration function. | |
void | evc_generic_write (evc_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | evc_generic_read (evc_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | evc_set_volume_part (evc_t *ctx, uint8_t channel, uint8_t volume1, uint8_t volume2) |
Set volume for the channel. | |
void | evc_set_volume_full (evc_t *ctx, uint8_t channel, int8_t volume) |
Set volume for the channel. | |
void | evc_clear (evc_t *ctx) |
Clear register. | |
void | evc_mute (evc_t *ctx, uint8_t mute) |
Mute and Unmute. | |
void evc_cfg_setup | ( | evc_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void evc_clear | ( | evc_t * | ctx | ) |
Clear register.
ctx | Click object. |
@description This function clears the registers.
void evc_default_cfg | ( | evc_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for EVC click.
void evc_generic_read | ( | evc_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len ) |
Generic read function.
ctx | Click object. |
reg | Register address. |
data_buf | Output data buf |
len | Number of the bytes to be read |
@description This function reads data from the desired register.
void evc_generic_write | ( | evc_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len ) |
Generic write function.
ctx | Click object. |
reg | Register address. |
data_buf | Data buf to be written. |
len | Number of the bytes in data buf. |
@description This function writes data to the desired register.
EVC_RETVAL evc_init | ( | evc_t * | ctx, |
evc_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void evc_mute | ( | evc_t * | ctx, |
uint8_t | mute ) |
Mute and Unmute.
ctx | Click object. |
Mute | Mute register |
@description This function mute and unmute the sound
void evc_set_volume_full | ( | evc_t * | ctx, |
uint8_t | channel, | ||
int8_t | volume ) |
Set volume for the channel.
ctx | Click object. |
channel | Chunnel register (from _EQUALIZER_CHANNEL_1 to _EQUALIZER_CHANNEL_6) |
volume | Volume (from 0 to -79) (int8_t value) |
@description This function sets the volume for the selected channel, uses one volume variables.
void evc_set_volume_part | ( | evc_t * | ctx, |
uint8_t | channel, | ||
uint8_t | volume1, | ||
uint8_t | volume2 ) |
Set volume for the channel.
ctx | Click object. |
channel | Chunnel register (from _EQUALIZER_CHANNEL_1 to _EQUALIZER_CHANNEL_6) |
volume1 | Volume (from _EQUALIZER_SET_VOLUME_1dB to _EQUALIZER_SET_VOLUME_9dB) |
volume2 | Volume (from _EQUALIZER_SET_VOLUME_10dB to _EQUALIZER_SET_VOLUME_70dB) |
@description This function sets the volume for the selected channel, uses two variables.