Infineon Logo AIROC BTSDK v4.9 - Documentation
 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
wiced_hal_pcm.h File Reference

Wiced PCM Utilities. More...

Data Structures

struct  wiced_hal_pcm_param_t
 
struct  wiced_hal_pcm_config_t
 

Typedefs

typedef uint8_t wiced_hal_pcm_clk_t
 
typedef uint8_t wiced_hal_pcm_data_order_t
 
typedef uint8_t wiced_hal_pcm_sync_type_t
 
typedef uint8_t wiced_hal_pcm_right_justify_t
 
typedef uint8_t wiced_hal_pcm_fill_data_t
 

Enumerations

enum  wiced_hal_i2spcm_role_t { WICED_HAL_I2SPCM_SLAVE = 0, WICED_HAL_I2SPCM_MASTER }
 
enum  wiced_hal_pcm_clk_e {
  WICED_HAL_PCM_RATE_128K = 0, WICED_HAL_PCM_RATE_256K, WICED_HAL_PCM_RATE_512K, WICED_HAL_PCM_RATE_1024K,
  WICED_HAL_PCM_RATE_2048K
}
 
enum  wiced_hal_pcm_data_order_e { WICED_HAL_PCM_MSB_FIRST = 0, WICED_HAL_PCM_LSB_FIRST }
 
enum  wiced_hal_pcm_sync_type_e { WICED_HAL_PCM_FRAME_TYPE_SHORT = 0, WICED_HAL_PCM_FRAME_TYPE_LONG }
 
enum  wiced_hal_pcm_right_justify_e { WICED_HAL_PCM_DISABLE_RIGHT_JUSTIFY = 0, WICED_HAL_PCM_ENABLE_RIGHT_JUSTIFY }
 
enum  wiced_hal_pcm_fill_data_e { WICED_HAL_PCM_FILL_0S = 0, WICED_HAL_PCM_FILL_1S, WICED_HAL_PCM_FILL_SIGNED, WICED_HAL_PCM_FILL_PROG }
 
enum  wiced_hal_i2spcm_path_t { WICED_HAL_I2S_MODE = 0, WICED_HAL_PCM_MODE }
 

Functions

void wiced_hal_set_pcm_config (wiced_hal_pcm_config_t *pcm_config)
 Function wiced_hal_set_pcm_config. More...
 
wiced_hal_pcm_config_twiced_hal_get_pcm_config (void)
 Function wiced_hal_get_pcm_config. More...
 

Detailed Description

Wiced PCM Utilities.

Function Documentation

wiced_hal_pcm_config_t* wiced_hal_get_pcm_config ( void  )

Function wiced_hal_get_pcm_config.

To get the current pcm configuration

Parameters
[in]void
Returns
structure wiced_hal_pcm_config_t pointer

Default values : mode = WICED_HAL_I2S_MODE role = WICED_HAL_I2SPCM_MASTER pcm_param = NULL

void wiced_hal_set_pcm_config ( wiced_hal_pcm_config_t pcm_config)

Function wiced_hal_set_pcm_config.

To set the pcm configuration parameter

Parameters
[in]pcm_config: strucure pointer
Returns
void