btaudio2 2.1.0.0
|
This file contains API for BT Audio 2 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_uart.h"
Go to the source code of this file.
Data Structures | |
struct | btaudio2_packet_t |
BT Audio 2 Click command/event packet structure object. More... | |
struct | btaudio2_t |
BT Audio 2 Click context object. More... | |
struct | btaudio2_cfg_t |
BT Audio 2 Click configuration object. More... | |
Enumerations | |
enum | btaudio2_return_value_t { BTAUDIO2_OK = 0 , BTAUDIO2_ERROR = -1 } |
BT Audio 2 Click return value data. More... | |
enum | btaudio2_music_control_t { BTAUDIO2_STOP_FAST_FORWARD_OR_REWIND = 0 , BTAUDIO2_FAST_FORWARD , BTAUDIO2_FAST_FORWARD_WITH_REPEAT , BTAUDIO2_REWIND , BTAUDIO2_REWIND_WITH_REPEAT , BTAUDIO2_PLAY , BTAUDIO2_PAUSE , BTAUDIO2_PLAY_PAUSE_TOGGLE , BTAUDIO2_STOP } |
BT Audio 2 Click music control values. More... | |
enum | btaudio2_eq_mode_t { BTAUDIO2_EQ_MODE_OFF = 0 , BTAUDIO2_EQ_MODE_SOFT , BTAUDIO2_EQ_MODE_BASS , BTAUDIO2_EQ_MODE_TREBLE , BTAUDIO2_EQ_MODE_CLASSIC , BTAUDIO2_EQ_MODE_ROCK , BTAUDIO2_EQ_MODE_JAZZ , BTAUDIO2_EQ_MODE_POP , BTAUDIO2_EQ_MODE_DANCE , BTAUDIO2_EQ_MODE_RNB , BTAUDIO2_EQ_MODE_USER1 } |
BT Audio 2 Click equalizer mode selection values. More... | |
Functions | |
void | btaudio2_cfg_setup (btaudio2_cfg_t *cfg) |
BT Audio 2 configuration object setup function. | |
err_t | btaudio2_init (btaudio2_t *ctx, btaudio2_cfg_t *cfg) |
BT Audio 2 initialization function. | |
err_t | btaudio2_default_cfg (btaudio2_t *ctx) |
BT Audio 2 default configuration function. | |
err_t | btaudio2_generic_write (btaudio2_t *ctx, uint8_t *data_in, uint16_t len) |
BT Audio 2 data writing function. | |
err_t | btaudio2_generic_read (btaudio2_t *ctx, uint8_t *data_out, uint16_t len) |
BT Audio 2 data reading function. | |
void | btaudio2_set_mfb_pin (btaudio2_t *ctx, uint8_t state) |
BT Audio 2 set MFB pin function. | |
void | btaudio2_set_rst_pin (btaudio2_t *ctx, uint8_t state) |
BT Audio 2 set RST pin function. | |
void | btaudio2_set_mode (btaudio2_t *ctx, uint8_t mode) |
BT Audio 2 set mode function. | |
void | btaudio2_reset_device (btaudio2_t *ctx) |
BT Audio 2 reset device function. | |
void | btaudio2_send_cmd (btaudio2_t *ctx) |
BT Audio 2 send command function. | |
err_t | btaudio2_send_cmd_with_ack (btaudio2_t *ctx) |
BT Audio 2 send command with ack check function. | |
err_t | btaudio2_read_event (btaudio2_t *ctx) |
BT Audio 2 read event function. | |
err_t | btaudio2_wait_for_event (btaudio2_t *ctx, uint8_t opcode) |
BT Audio 2 wait for event function. | |
void | btaudio2_clear_events (btaudio2_t *ctx) |
BT Audio 2 clear events function. | |
err_t | btaudio2_send_mmi_action (btaudio2_t *ctx, uint8_t database_index, uint8_t action) |
BT Audio 2 send MMI action function. | |
err_t | btaudio2_power_on_device (btaudio2_t *ctx) |
BT Audio 2 power ON device function. | |
err_t | btaudio2_power_off_device (btaudio2_t *ctx) |
BT Audio 2 power OFF device function. | |
err_t | btaudio2_enter_pairing_mode (btaudio2_t *ctx) |
BT Audio 2 enter pairing mode function. | |
err_t | btaudio2_reset_to_default (btaudio2_t *ctx) |
BT Audio 2 reset to default function. | |
err_t | btaudio2_set_device_name (btaudio2_t *ctx, uint8_t *device_name) |
BT Audio 2 set device name function. | |
err_t | btaudio2_music_control (btaudio2_t *ctx, btaudio2_music_control_t action) |
BT Audio 2 music control function. | |
err_t | btaudio2_make_call (btaudio2_t *ctx, uint8_t database_index, uint8_t *phone_number) |
BT Audio 2 make call function. | |
err_t | btaudio2_volume_up (btaudio2_t *ctx, uint8_t database_index, uint8_t mask) |
BT Audio 2 volume up function. | |
err_t | btaudio2_volume_down (btaudio2_t *ctx, uint8_t database_index, uint8_t mask) |
BT Audio 2 volume down function. | |
err_t | btaudio2_enable_advertising (btaudio2_t *ctx) |
BT Audio 2 enable advertising function. | |
err_t | btaudio2_disable_advertising (btaudio2_t *ctx) |
BT Audio 2 disable advertising function. | |
err_t | btaudio2_set_eq_mode (btaudio2_t *ctx, btaudio2_eq_mode_t eq_mode) |
BT Audio 2 set equalizer mode function. | |
This file contains API for BT Audio 2 Click Driver.
enum btaudio2_eq_mode_t |
BT Audio 2 Click equalizer mode selection values.
Predefined enum values for equalizer mode selection.