driver tea5767 basic include file
uint8_t tea5767_get_ready_flag(tea5767_handle_t *handle, tea5767_bool_t *enable)
get the ready flag
uint8_t tea5767_deinit(tea5767_handle_t *handle)
close the chip
uint8_t tea5767_set_right_mute(tea5767_handle_t *handle, tea5767_bool_t enable)
enable or disable right mute
uint8_t tea5767_set_pll(tea5767_handle_t *handle, uint16_t pll)
set the pll
uint8_t tea5767_set_search_stop_level(tea5767_handle_t *handle, tea5767_search_stop_level_t level)
set the search stop level
uint8_t tea5767_write_conf(tea5767_handle_t *handle)
write the conf
uint8_t tea5767_set_high_cut_control(tea5767_handle_t *handle, tea5767_bool_t enable)
enable or disable high cut control
uint8_t tea5767_get_searched_pll(tea5767_handle_t *handle, uint16_t *pll)
get the searched pll
uint8_t tea5767_set_search_mode(tea5767_handle_t *handle, tea5767_search_mode_t mode)
set the search mode
uint8_t tea5767_set_side_injection(tea5767_handle_t *handle, tea5767_side_injection_t side)
set the side injection
uint8_t tea5767_set_mode(tea5767_handle_t *handle, tea5767_mode_t mode)
set the chip mode
uint8_t tea5767_set_port1_as_search_indicator(tea5767_handle_t *handle, tea5767_bool_t enable)
enable or disable port1 as search indicator
uint8_t tea5767_set_port1(tea5767_handle_t *handle, tea5767_level_t level)
set the port1 level
tea5767_bool_t
tea5767 bool enumeration definition
uint8_t tea5767_set_mute(tea5767_handle_t *handle, tea5767_bool_t enable)
enable or disable the mute
uint8_t tea5767_set_de_emphasis(tea5767_handle_t *handle, tea5767_de_emphasis_t emphasis)
set the de emphasis
uint8_t tea5767_frequency_convert_to_register(tea5767_handle_t *handle, float mhz, uint16_t *pll)
convert the frequency to the register raw data
uint8_t tea5767_get_band_limit_flag(tea5767_handle_t *handle, tea5767_bool_t *enable)
get the band limit flag
uint8_t tea5767_set_soft_mute(tea5767_handle_t *handle, tea5767_bool_t enable)
enable or disable soft mute
struct tea5767_handle_s tea5767_handle_t
tea5767 handle structure definition
uint8_t tea5767_init(tea5767_handle_t *handle)
initialize the chip
uint8_t tea5767_set_channel(tea5767_handle_t *handle, tea5767_channel_t channel)
set the sound channel
uint8_t tea5767_set_clock(tea5767_handle_t *handle, tea5767_clock_t clk)
set the clock
uint8_t tea5767_set_stereo_noise_cancelling(tea5767_handle_t *handle, tea5767_bool_t enable)
enable or disable stereo noise cancelling
uint8_t tea5767_read_conf(tea5767_handle_t *handle)
read the conf
uint8_t tea5767_frequency_convert_to_data(tea5767_handle_t *handle, uint16_t pll, float *mhz)
convert the register raw data to the frequency
uint8_t tea5767_set_band(tea5767_handle_t *handle, tea5767_band_t band)
set the band
uint8_t tea5767_set_left_mute(tea5767_handle_t *handle, tea5767_bool_t enable)
enable or disable left mute
uint8_t tea5767_set_port2(tea5767_handle_t *handle, tea5767_level_t level)
set the port2 level
uint8_t tea5767_set_standby(tea5767_handle_t *handle, tea5767_bool_t enable)
enable or disable standby
@ TEA5767_SEARCH_MODE_DOWN
uint8_t tea5767_basic_get_frequency(float *mhz)
basic example get frequency
uint8_t tea5767_basic_search_down(void)
basic example search down
#define TEA57671_BASIC_DEFAULT_SIDE_INJECTION
#define TEA57671_BASIC_DEFAULT_LEFT_MUTE
#define TEA57671_BASIC_DEFAULT_CHANNEL
#define TEA57671_BASIC_DEFAULT_MHZ
uint8_t tea5767_basic_init(void)
basic example init
#define TEA57671_BASIC_DEFAULT_PORT1_AS_SEARCH_INDICATOR
#define TEA57671_BASIC_DEFAULT_DE_EMPHASIS
#define TEA57671_BASIC_DEFAULT_SEARCH_MODE
uint8_t tea5767_basic_search_up(void)
basic example search up
#define TEA57671_BASIC_DEFAULT_BAND
#define TEA57671_BASIC_DEFAULT_CLOCK
#define TEA57671_BASIC_DEFAULT_PORT2
#define TEA57671_BASIC_DEFAULT_HIGH_CUT_CONTROL
#define TEA57671_BASIC_DEFAULT_MODE
#define TEA57671_BASIC_DEFAULT_STEREO_NOISE_CANCELING
uint8_t tea5767_basic_set_frequency(float mhz)
basic example set frequency
#define TEA57671_BASIC_DEFAULT_SOFT_MUTE
uint8_t tea5767_basic_deinit(void)
basic example deinit
#define TEA57671_BASIC_DEFAULT_PORT1
uint8_t tea5767_basic_set_mute(tea5767_bool_t enable)
basic example enable or disable mute
#define TEA57671_BASIC_DEFAULT_MUTE
tea5767 basic example default definition
#define TEA57671_BASIC_DEFAULT_SEARCH_STOP_LEVEL
#define TEA57671_BASIC_DEFAULT_RIGHT_MUTE
uint8_t tea5767_interface_iic_init(void)
interface iic bus init
void tea5767_interface_debug_print(const char *const fmt,...)
interface print format data
uint8_t tea5767_interface_iic_deinit(void)
interface iic bus deinit
uint8_t tea5767_interface_iic_read_cmd(uint8_t addr, uint8_t *buf, uint16_t len)
interface iic bus read command
uint8_t tea5767_interface_iic_write_cmd(uint8_t addr, uint8_t *buf, uint16_t len)
interface iic bus write command
void tea5767_interface_delay_ms(uint32_t ms)
interface delay ms
#define DRIVER_TEA5767_LINK_IIC_DEINIT(HANDLE, FUC)
link iic_deinit function
#define DRIVER_TEA5767_LINK_DEBUG_PRINT(HANDLE, FUC)
link debug_print function
#define DRIVER_TEA5767_LINK_IIC_WRITE_COMMAND(HANDLE, FUC)
link iic_write_cmd function
#define DRIVER_TEA5767_LINK_DELAY_MS(HANDLE, FUC)
link delay_ms function
#define DRIVER_TEA5767_LINK_IIC_INIT(HANDLE, FUC)
link iic_init function
#define DRIVER_TEA5767_LINK_IIC_READ_COMMAND(HANDLE, FUC)
link iic_read_cmd function
#define DRIVER_TEA5767_LINK_INIT(HANDLE, STRUCTURE)
initialize tea5767_handle_t structure