SMIX driver APIs. More...
Data Structures | |
| struct | smix_dma_linked_descriptor_t |
| struct | smix_dma_ch_config_t |
| struct | smix_mixer_dst_config_t |
| struct | smix_mixer_source_config_t |
Functions | |
| static bool | smix_dma_check_transfer_complete (SMIX_Type *ptr, uint8_t ch_index) |
| smix dma check transfer complete status More... | |
| static bool | smix_dma_check_transfer_abort (SMIX_Type *ptr, uint8_t ch_index) |
| smix dma check transfer abort status More... | |
| static bool | smix_dma_check_transfer_error (SMIX_Type *ptr, uint8_t ch_index) |
| smix dma check transfer error status More... | |
| static void | smix_mixer_dst_enable_source_channel (SMIX_Type *ptr, uint8_t dst_ch, uint32_t source_ch_mask) |
| smix mixer enable source channel for dst More... | |
| static void | smix_mixer_dst_disable_source_channel (SMIX_Type *ptr, uint8_t dst_ch, uint32_t source_ch_mask) |
| smix mixer disable source channel for dst More... | |
| static void | smix_mixer_dst_active_source_channel (SMIX_Type *ptr, uint8_t dst_ch, uint32_t source_ch_mask) |
| smix mixer active source channel for dst More... | |
| static void | smix_mixer_dst_deactive_source_channel (SMIX_Type *ptr, uint8_t dst_ch, uint32_t source_ch_mask) |
| smix mixer deactive source channel for dst More... | |
| static void | smix_mixer_dst_fadein_source_channel (SMIX_Type *ptr, uint8_t dst_ch, uint32_t source_ch_mask) |
| smix mixer fadein source channel for dst More... | |
| static void | smix_mixer_dst_fadeout_source_channel (SMIX_Type *ptr, uint8_t dst_ch, uint32_t source_ch_mask) |
| smix mixer fadeout source channel for dst More... | |
| static void | smix_mixer_dst_enable (SMIX_Type *ptr) |
| smix mixer enable dst channel More... | |
| static void | smix_mixer_dst_disable (SMIX_Type *ptr) |
| smix mixer disable dst channel More... | |
| static uint32_t | smix_mixer_get_calsat_status (SMIX_Type *ptr) |
| smix mixer get calculate saturation register value More... | |
| static bool | smix_mixer_check_dst_cal_saturation_error (SMIX_Type *ptr, uint8_t dst_ch) |
| smix mixer check dst channel calculate saturation error More... | |
| static bool | smix_mixer_check_source_cal_saturation_error (SMIX_Type *ptr, uint8_t source_ch) |
| smix mixer check source channel calculate saturation error More... | |
| static bool | smix_mixer_check_dst_data_underflew (SMIX_Type *ptr, uint8_t dst_ch) |
| smix mixer check dst channel data ubderflew More... | |
| static bool | smix_mixer_check_dst_data_available (SMIX_Type *ptr, uint8_t dst_ch) |
| smix mixer check dst channel data available More... | |
| static bool | smix_mixer_check_source_data_needed (SMIX_Type *ptr, uint8_t source_ch) |
| smix mixer check source channel data available More... | |
| hpm_stat_t | smix_mixer_config_dst_fadein_delta (SMIX_Type *ptr, uint8_t ch, uint32_t target_sample_rate, uint32_t ms) |
| smix mixer config dst channel fadein delta More... | |
| hpm_stat_t | smix_mixer_config_dst_fadeout_delta (SMIX_Type *ptr, uint8_t ch, uint32_t target_sample_rate, uint32_t ms) |
| smix mixer config dst channel fadeout delta More... | |
| hpm_stat_t | smix_mixer_config_source_fadein_delta (SMIX_Type *ptr, uint8_t ch, uint32_t target_sample_rate, uint32_t ms) |
| smix mixer config source channel fadein delta More... | |
| hpm_stat_t | smix_mixer_config_source_fadeout_delta (SMIX_Type *ptr, uint8_t ch, uint32_t target_sample_rate, uint32_t ms) |
| smix mixer config source channel fadeout delta More... | |
| void | smix_get_dma_default_ch_config (SMIX_Type *ptr, smix_dma_ch_config_t *config) |
| smix get dma channel default config More... | |
| void | smix_get_mixer_dst_ch_default_config (SMIX_Type *ptr, smix_mixer_dst_config_t *config) |
| smix get dst channel default config More... | |
| void | smix_get_mixer_source_ch_default_config (SMIX_Type *ptr, smix_mixer_source_config_t *config) |
| smix get source channel default config More... | |
| hpm_stat_t | smix_config_dma_channel (SMIX_Type *ptr, uint8_t ch, smix_dma_ch_config_t *config, bool start) |
| smix config dma channel More... | |
| hpm_stat_t | smix_mixer_config_source_ch (SMIX_Type *ptr, uint8_t ch, smix_mixer_source_config_t *src) |
| smix mixer config source channel More... | |
| hpm_stat_t | smix_mixer_config_dst_ch (SMIX_Type *ptr, uint8_t ch, smix_mixer_dst_config_t *dst) |
| smix mixer config dst channel More... | |
SMIX driver APIs.
#include <drivers/inc/hpm_smix_drv.h>
| Enumerator | |
|---|---|
| smix_dma_address_increment | |
| smix_dma_address_decrement | |
| smix_dma_address_fixed | |
#include <drivers/inc/hpm_smix_drv.h>
| Enumerator | |
|---|---|
| smix_dma_mode_normal | |
| smix_dma_mode_handshake | |
| enum smix_dma_req_t |
#include <drivers/inc/hpm_smix_drv.h>
#include <drivers/inc/hpm_smix_drv.h>
#include <drivers/inc/hpm_smix_drv.h>
| Enumerator | |
|---|---|
| smix_dma_transfer_byte | |
| smix_dma_transfer_half_word | |
| smix_dma_transfer_word | |
| enum smix_mixer_gain_t |
#include <drivers/inc/hpm_smix_drv.h>
| Enumerator | |
|---|---|
| smix_mixer_gain_decrease_12db | |
| smix_mixer_gain_decrease_6db | |
| smix_mixer_gain_0db | |
| smix_mixer_gain_increase_6db | |
| smix_mixer_gain_increase_12db | |
#include <drivers/inc/hpm_smix_drv.h>
#include <drivers/inc/hpm_smix_drv.h>
| hpm_stat_t smix_config_dma_channel | ( | SMIX_Type * | ptr, |
| uint8_t | ch, | ||
| smix_dma_ch_config_t * | config, | ||
| bool | start | ||
| ) |
#include <drivers/inc/hpm_smix_drv.h>
smix config dma channel
| [in] | ptr | SMIX base address |
| [in] | ch | dma channel |
| [in] | config | smix_dma_ch_config_t |
| [in] | start | true for start dma |
| status_success | if no error occurs |
|
inlinestatic |
#include <drivers/inc/hpm_smix_drv.h>
smix dma check transfer abort status
| [in] | ptr | SMIX base address |
| [in] | ch_index | dma channel |
| true | for transfer abort |
|
inlinestatic |
#include <drivers/inc/hpm_smix_drv.h>
smix dma check transfer complete status
| [in] | ptr | SMIX base address |
| [in] | ch_index | dma channel |
| true | for transfer complete |
|
inlinestatic |
#include <drivers/inc/hpm_smix_drv.h>
smix dma check transfer error status
| [in] | ptr | SMIX base address |
| [in] | ch_index | dma channel |
| true | for transfer error |
| void smix_get_dma_default_ch_config | ( | SMIX_Type * | ptr, |
| smix_dma_ch_config_t * | config | ||
| ) |
#include <drivers/inc/hpm_smix_drv.h>
smix get dma channel default config
| [in] | ptr | SMIX base address |
| [in] | config | smix_dma_ch_config_t |
| void smix_get_mixer_dst_ch_default_config | ( | SMIX_Type * | ptr, |
| smix_mixer_dst_config_t * | config | ||
| ) |
#include <drivers/inc/hpm_smix_drv.h>
smix get dst channel default config
| [in] | ptr | SMIX base address |
| [in] | config | smix_mixer_dst_config_t |
| void smix_get_mixer_source_ch_default_config | ( | SMIX_Type * | ptr, |
| smix_mixer_source_config_t * | config | ||
| ) |
#include <drivers/inc/hpm_smix_drv.h>
smix get source channel default config
| [in] | ptr | SMIX base address |
| [in] | config | smix_mixer_source_config_t |
|
inlinestatic |
#include <drivers/inc/hpm_smix_drv.h>
smix mixer check dst channel calculate saturation error
| [in] | ptr | SMIX base address |
| [in] | dst_ch | dst channel |
| true | for calculate saturation error occurred |
|
inlinestatic |
#include <drivers/inc/hpm_smix_drv.h>
smix mixer check dst channel data available
| [in] | ptr | SMIX base address |
| [in] | dst_ch | dst channel |
| true | for data available |
|
inlinestatic |
#include <drivers/inc/hpm_smix_drv.h>
smix mixer check dst channel data ubderflew
| [in] | ptr | SMIX base address |
| [in] | dst_ch | dst channel |
| true | for data underflew |
|
inlinestatic |
#include <drivers/inc/hpm_smix_drv.h>
smix mixer check source channel calculate saturation error
| [in] | ptr | SMIX base address |
| [in] | source_ch | source channel |
| true | for calculate saturation error occurred |
|
inlinestatic |
#include <drivers/inc/hpm_smix_drv.h>
smix mixer check source channel data available
| [in] | ptr | SMIX base address |
| [in] | source_ch | source channel |
| true | for source channel need new data |
| hpm_stat_t smix_mixer_config_dst_ch | ( | SMIX_Type * | ptr, |
| uint8_t | ch, | ||
| smix_mixer_dst_config_t * | dst | ||
| ) |
#include <drivers/inc/hpm_smix_drv.h>
smix mixer config dst channel
| [in] | ptr | SMIX base address |
| [in] | ch | dst channel |
| [in] | dst | smix_mixer_dst_config_t |
| status_success | if no error occurs |
| hpm_stat_t smix_mixer_config_dst_fadein_delta | ( | SMIX_Type * | ptr, |
| uint8_t | ch, | ||
| uint32_t | target_sample_rate, | ||
| uint32_t | ms | ||
| ) |
#include <drivers/inc/hpm_smix_drv.h>
smix mixer config dst channel fadein delta
| [in] | ptr | SMIX base address |
| [in] | ch | dst channel |
| [in] | target_sample_rate | target sample rate |
| [in] | ms | fadein consumed time in ms |
| status_success | if no error occurs |
| hpm_stat_t smix_mixer_config_dst_fadeout_delta | ( | SMIX_Type * | ptr, |
| uint8_t | ch, | ||
| uint32_t | target_sample_rate, | ||
| uint32_t | ms | ||
| ) |
#include <drivers/inc/hpm_smix_drv.h>
smix mixer config dst channel fadeout delta
| [in] | ptr | SMIX base address |
| [in] | ch | dst channel |
| [in] | target_sample_rate | target sample rate |
| [in] | ms | fadeout consumed time in ms |
| status_success | if no error occurs |
| hpm_stat_t smix_mixer_config_source_ch | ( | SMIX_Type * | ptr, |
| uint8_t | ch, | ||
| smix_mixer_source_config_t * | src | ||
| ) |
#include <drivers/inc/hpm_smix_drv.h>
smix mixer config source channel
| [in] | ptr | SMIX base address |
| [in] | ch | source channel |
| [in] | src | smix_mixer_source_config_t |
| status_success | if no error occurs |
| hpm_stat_t smix_mixer_config_source_fadein_delta | ( | SMIX_Type * | ptr, |
| uint8_t | ch, | ||
| uint32_t | target_sample_rate, | ||
| uint32_t | ms | ||
| ) |
#include <drivers/inc/hpm_smix_drv.h>
smix mixer config source channel fadein delta
| [in] | ptr | SMIX base address |
| [in] | ch | source channel |
| [in] | target_sample_rate | target sample rate |
| [in] | ms | fadein consumed time in ms |
| status_success | if no error occurs |
| hpm_stat_t smix_mixer_config_source_fadeout_delta | ( | SMIX_Type * | ptr, |
| uint8_t | ch, | ||
| uint32_t | target_sample_rate, | ||
| uint32_t | ms | ||
| ) |
#include <drivers/inc/hpm_smix_drv.h>
smix mixer config source channel fadeout delta
| [in] | ptr | SMIX base address |
| [in] | ch | source channel |
| [in] | target_sample_rate | target sample rate |
| [in] | ms | fadeout consumed time in ms |
| status_success | if no error occurs |
|
inlinestatic |
#include <drivers/inc/hpm_smix_drv.h>
smix mixer active source channel for dst
| [in] | ptr | SMIX base address |
| [in] | dst_ch | dst channel |
| [in] | source_ch_mask | source channel mask |
|
inlinestatic |
#include <drivers/inc/hpm_smix_drv.h>
smix mixer deactive source channel for dst
| [in] | ptr | SMIX base address |
| [in] | dst_ch | dst channel |
| [in] | source_ch_mask | source channel mask |
|
inlinestatic |
#include <drivers/inc/hpm_smix_drv.h>
smix mixer disable dst channel
| [in] | ptr | SMIX base address |
|
inlinestatic |
#include <drivers/inc/hpm_smix_drv.h>
smix mixer disable source channel for dst
| [in] | ptr | SMIX base address |
| [in] | dst_ch | dst channel |
| [in] | source_ch_mask | source channel mask |
|
inlinestatic |
#include <drivers/inc/hpm_smix_drv.h>
smix mixer enable dst channel
| [in] | ptr | SMIX base address |
|
inlinestatic |
#include <drivers/inc/hpm_smix_drv.h>
smix mixer enable source channel for dst
| [in] | ptr | SMIX base address |
| [in] | dst_ch | dst channel |
| [in] | source_ch_mask | source channel mask |
|
inlinestatic |
#include <drivers/inc/hpm_smix_drv.h>
smix mixer fadein source channel for dst
| [in] | ptr | SMIX base address |
| [in] | dst_ch | dst channel |
| [in] | source_ch_mask | source channel mask |
|
inlinestatic |
#include <drivers/inc/hpm_smix_drv.h>
smix mixer fadeout source channel for dst
| [in] | ptr | SMIX base address |
| [in] | dst_ch | dst channel |
| [in] | source_ch_mask | source channel mask |
|
inlinestatic |
#include <drivers/inc/hpm_smix_drv.h>
smix mixer get calculate saturation register value
| [in] | ptr | SMIX base address |
| calculate | saturation register value |