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

Type defines and interfaces common for audio hardware platform. More...

Typedefs

typedef uint8_t platform_global_state_t
 
typedef uint8_t platform_button_id_t
 
typedef uint8_t platform_audio_side_t
 
typedef uint8_t platform_codec_route_t
 
typedef uint8_t platform_led_state_t
 
typedef uint8_t platform_charger_event_t
 
typedef void( platform_charger_callback_t )(platform_charger_event_t event)
 
typedef wiced_bool_t( platform_button_callback_t )(platform_button_id_t button_id, uint32_t repeat_counter)
 

Enumerations

enum  platform_global_state { GLOBAL_POWER_UP_STATE = 0, GLOBAL_IDLE_STATE, GLOBAL_POWER_DOWN_STATE }
 
enum  platform_button_id {
  PLATFORM_BUTTON_POWER_ON = 0, PLATFORM_BUTTON_POWER_OFF, PLATFORM_BUTTON_PAIRING, PLATFORM_BUTTON_VOLUME_UP,
  PLATFORM_BUTTON_VOLUME_DOWN, PLATFORM_BUTTON_WICED_HCI_DETECT_ON, PLATFORM_BUTTON_LRAC_BUTTON_1_LONG, PLATFORM_BUTTON_LRAC_BUTTON_1_SHORT,
  PLATFORM_BUTTON_LRAC_BUTTON_1_REPEAT, PLATFORM_BUTTON_LRAC_BUTTON_2_LONG, PLATFORM_BUTTON_LRAC_BUTTON_2_SHORT, PLATFORM_BUTTON_LRAC_BUTTON_2_REPEAT,
  PLATFORM_BUTTON_LRAC_BUTTON_3_LONG, PLATFORM_BUTTON_LRAC_BUTTON_3_SHORT, PLATFORM_BUTTON_LRAC_BUTTON_3_REPEAT, PLATFORM_BUTTON_LRAC_BUTTON_4_LONG,
  PLATFORM_BUTTON_LRAC_BUTTON_4_REPEAT, PLATFORM_BUTTON_LAST
}
 
enum  platform_audio_side { PLATFORM_AUDIO_SIDE_LEFT = 0, PLATFORM_AUDIO_SIDE_RIGHT }
 
enum  platform_codec_route { PLATFORM_CODEC_ROUTE_NONE = 0, PLATFORM_CODEC_ROUTE_CVSD, PLATFORM_CODEC_ROUTE_MSBC }
 
enum  platform_led_state {
  PLATFORM_LED_POWER_ON = 0, PLATFORM_LED_POWER_OFF, PLATFORM_LED_PAIRING, PLATFORM_LED_LRAC_CONNECTION,
  PLATFORM_LED_A2DP_CONNECTION, PLATFORM_LED_AVRC_CONNECTION, PLATFORM_LED_HFP_CONNECTION, PLATFORM_LED_HFP_VOICE_STATE,
  PLATFORM_LED_A2DP_STREAM_STATE, PLATFORM_LED_CHARGER
}
 
enum  platform_charger_event { PLATFORM_CHARGER_INSERTED = 0, PLATFORM_CHARGER_REMOVED, PLATFORM_CHARGER_CHARGE_COMPLETE }
 

Functions

wiced_result_t platform_init (void)
 
wiced_result_t wass_button_init (platform_button_callback_t *p_callback)
 
wiced_result_t platform_charger_init (platform_charger_callback_t *p_callback)
 
wiced_result_t platform_state_set (platform_global_state_t state)
 
platform_global_state_t platform_state_get (void)
 
wiced_result_t platform_audio_side_set (platform_audio_side_t audio_side)
 
wiced_result_t platform_codec_route_set (platform_codec_route_t codec_route)
 
void platform_led_set (platform_led_state_t led_state, uint8_t param)
 
void platform_handle_hci_command (uint16_t cmd_opcode, uint8_t *p_data, uint32_t data_len)
 
wiced_result_t platform_switch_get (void *p_opaque, uint16_t *p_sync_data_len)
 
wiced_result_t platform_switch_set (void *p_opaque, uint16_t sync_data_len)
 
void wiced_platform_debug_enable (void)
 
void platform_button_emulator (platform_button_id_t button_id, uint32_t repeat_counter)
 

Detailed Description

Type defines and interfaces common for audio hardware platform.