LibDriver TEA5767
Loading...
Searching...
No Matches
tea5767 base driver function

tea5767 base driver modules More...

Collaboration diagram for tea5767 base driver function:

Data Structures

struct  tea5767_handle_s
 tea5767 handle structure definition More...
struct  tea5767_info_s
 tea5767 information structure definition More...

Typedefs

typedef struct tea5767_handle_s tea5767_handle_t
 tea5767 handle structure definition
typedef struct tea5767_info_s tea5767_info_t
 tea5767 information structure definition

Enumerations

enum  tea5767_bool_t { TEA5767_BOOL_FALSE = 0x00 , TEA5767_BOOL_TRUE = 0x01 }
 tea5767 bool enumeration definition More...
enum  tea5767_level_t { TEA5767_LEVEL_LOW = 0x00 , TEA5767_LEVEL_HIGH = 0x01 }
 tea5767 level enumeration definition More...
enum  tea5767_mode_t { TEA5767_MODE_NORMAL = 0x00 , TEA5767_MODE_SEARCH = 0x01 }
 tea5767 mode enumeration definition More...
enum  tea5767_search_mode_t { TEA5767_SEARCH_MODE_DOWN = 0x00 , TEA5767_SEARCH_MODE_UP = 0x01 }
 tea5767 search mode enumeration definition More...
enum  tea5767_side_injection_t { TEA5767_SIDE_INJECTION_LOW = 0x00 , TEA5767_SIDE_INJECTION_HIGH = 0x01 }
 tea5767 side injection enumeration definition More...
enum  tea5767_channel_t { TEA5767_CHANNEL_STEREO = 0x00 , TEA5767_CHANNEL_MONO = 0x01 }
 tea5767 channel enumeration definition More...
enum  tea5767_search_stop_level_t { TEA5767_SEARCH_STOP_LEVEL_LOW = 0x01 , TEA5767_SEARCH_STOP_LEVEL_MID = 0x02 , TEA5767_SEARCH_STOP_LEVEL_HIGH = 0x03 }
 tea5767 search stop level enumeration definition More...
enum  tea5767_band_t { TEA5767_BAND_US_EUROPE = 0x00 , TEA5767_BAND_JAPANESE = 0x01 }
 tea5767 band enumeration definition More...
enum  tea5767_de_emphasis_t { TEA5767_DE_EMPHASIS_50US = 0x00 , TEA5767_DE_EMPHASIS_75US = 0x01 }
 tea5767 de-emphasis enumeration definition More...
enum  tea5767_clock_t { TEA5767_CLOCK_13_MHZ = 0x00 , TEA5767_CLOCK_32P768_KHZ = 0x01 , TEA5767_CLOCK_6P5_MHZ = 0x02 }
 tea5767 clock enumeration definition More...
enum  tea5767_reception_t { TEA5767_RECEPTION_MONO = 0x00 , TEA5767_RECEPTION_STEREO = 0x01 }
 tea5767 reception enumeration definition More...

Functions

uint8_t tea5767_info (tea5767_info_t *info)
 get chip's information
uint8_t tea5767_init (tea5767_handle_t *handle)
 initialize the chip
uint8_t tea5767_deinit (tea5767_handle_t *handle)
 close the chip
uint8_t tea5767_write_conf (tea5767_handle_t *handle)
 write the conf
uint8_t tea5767_update_conf (tea5767_handle_t *handle, uint8_t conf[5])
 update the conf
uint8_t tea5767_read_conf (tea5767_handle_t *handle)
 read the conf
uint8_t tea5767_set_mute (tea5767_handle_t *handle, tea5767_bool_t enable)
 enable or disable the mute
uint8_t tea5767_get_mute (tea5767_handle_t *handle, tea5767_bool_t *enable)
 get the mute status
uint8_t tea5767_set_mode (tea5767_handle_t *handle, tea5767_mode_t mode)
 set the chip mode
uint8_t tea5767_get_mode (tea5767_handle_t *handle, tea5767_mode_t *mode)
 get the chip mode
uint8_t tea5767_set_pll (tea5767_handle_t *handle, uint16_t pll)
 set the pll
uint8_t tea5767_get_pll (tea5767_handle_t *handle, uint16_t *pll)
 get the pll
uint8_t tea5767_set_search_mode (tea5767_handle_t *handle, tea5767_search_mode_t mode)
 set the search mode
uint8_t tea5767_get_search_mode (tea5767_handle_t *handle, tea5767_search_mode_t *mode)
 get the search mode
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_get_search_stop_level (tea5767_handle_t *handle, tea5767_search_stop_level_t *level)
 get the search stop level
uint8_t tea5767_set_side_injection (tea5767_handle_t *handle, tea5767_side_injection_t side)
 set the side injection
uint8_t tea5767_get_side_injection (tea5767_handle_t *handle, tea5767_side_injection_t *side)
 get the side injection
uint8_t tea5767_set_channel (tea5767_handle_t *handle, tea5767_channel_t channel)
 set the sound channel
uint8_t tea5767_get_channel (tea5767_handle_t *handle, tea5767_channel_t *channel)
 get the sound channel
uint8_t tea5767_set_right_mute (tea5767_handle_t *handle, tea5767_bool_t enable)
 enable or disable right mute
uint8_t tea5767_get_right_mute (tea5767_handle_t *handle, tea5767_bool_t *enable)
 get the right mute status
uint8_t tea5767_set_left_mute (tea5767_handle_t *handle, tea5767_bool_t enable)
 enable or disable left mute
uint8_t tea5767_get_left_mute (tea5767_handle_t *handle, tea5767_bool_t *enable)
 get the left mute status
uint8_t tea5767_set_port1 (tea5767_handle_t *handle, tea5767_level_t level)
 set the port1 level
uint8_t tea5767_get_port1 (tea5767_handle_t *handle, tea5767_level_t *level)
 get the port1 level
uint8_t tea5767_set_port2 (tea5767_handle_t *handle, tea5767_level_t level)
 set the port2 level
uint8_t tea5767_get_port2 (tea5767_handle_t *handle, tea5767_level_t *level)
 get the port2 level
uint8_t tea5767_set_standby (tea5767_handle_t *handle, tea5767_bool_t enable)
 enable or disable standby
uint8_t tea5767_get_standby (tea5767_handle_t *handle, tea5767_bool_t *enable)
 get the standby status
uint8_t tea5767_set_band (tea5767_handle_t *handle, tea5767_band_t band)
 set the band
uint8_t tea5767_get_band (tea5767_handle_t *handle, tea5767_band_t *band)
 get the band
uint8_t tea5767_set_soft_mute (tea5767_handle_t *handle, tea5767_bool_t enable)
 enable or disable soft mute
uint8_t tea5767_get_soft_mute (tea5767_handle_t *handle, tea5767_bool_t *enable)
 get the soft mute status
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_high_cut_control (tea5767_handle_t *handle, tea5767_bool_t *enable)
 get the high cut control status
uint8_t tea5767_set_stereo_noise_cancelling (tea5767_handle_t *handle, tea5767_bool_t enable)
 enable or disable stereo noise cancelling
uint8_t tea5767_get_stereo_noise_cancelling (tea5767_handle_t *handle, tea5767_bool_t *enable)
 get the stereo noise cancelling status
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_get_port1_as_search_indicator (tea5767_handle_t *handle, tea5767_bool_t *enable)
 get the port1 as search indicator status
uint8_t tea5767_set_de_emphasis (tea5767_handle_t *handle, tea5767_de_emphasis_t emphasis)
 set the de emphasis
uint8_t tea5767_get_de_emphasis (tea5767_handle_t *handle, tea5767_de_emphasis_t *emphasis)
 get the de emphasis status
uint8_t tea5767_set_clock (tea5767_handle_t *handle, tea5767_clock_t clk)
 set the clock
uint8_t tea5767_get_clock (tea5767_handle_t *handle, tea5767_clock_t *clk)
 get the clock
uint8_t tea5767_get_ready_flag (tea5767_handle_t *handle, tea5767_bool_t *enable)
 get the ready flag
uint8_t tea5767_get_band_limit_flag (tea5767_handle_t *handle, tea5767_bool_t *enable)
 get the band limit flag
uint8_t tea5767_get_searched_pll (tea5767_handle_t *handle, uint16_t *pll)
 get the searched pll
uint8_t tea5767_get_if (tea5767_handle_t *handle, uint8_t *if_out)
 get the if
uint8_t tea5767_get_reception (tea5767_handle_t *handle, tea5767_reception_t *reception)
 get the reception
uint8_t tea5767_get_level_adc_output (tea5767_handle_t *handle, uint8_t *output)
 get the level adc output
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_frequency_convert_to_data (tea5767_handle_t *handle, uint16_t pll, float *mhz)
 convert the register raw data to the frequency

Detailed Description

tea5767 base driver modules

Typedef Documentation

◆ tea5767_handle_t

tea5767 handle structure definition

◆ tea5767_info_t

tea5767 information structure definition

Enumeration Type Documentation

◆ tea5767_band_t

tea5767 band enumeration definition

Enumerator
TEA5767_BAND_US_EUROPE 

US/Europe fm band

TEA5767_BAND_JAPANESE 

Japanese fm band

Definition at line 126 of file driver_tea5767.h.

◆ tea5767_bool_t

tea5767 bool enumeration definition

Enumerator
TEA5767_BOOL_FALSE 

disable

TEA5767_BOOL_TRUE 

enable

Definition at line 62 of file driver_tea5767.h.

◆ tea5767_channel_t

tea5767 channel enumeration definition

Enumerator
TEA5767_CHANNEL_STEREO 

stereo

TEA5767_CHANNEL_MONO 

mono

Definition at line 107 of file driver_tea5767.h.

◆ tea5767_clock_t

tea5767 clock enumeration definition

Enumerator
TEA5767_CLOCK_13_MHZ 

13MHz

TEA5767_CLOCK_32P768_KHZ 

32.768KHz

TEA5767_CLOCK_6P5_MHZ 

6.5MHz

Definition at line 144 of file driver_tea5767.h.

◆ tea5767_de_emphasis_t

tea5767 de-emphasis enumeration definition

Enumerator
TEA5767_DE_EMPHASIS_50US 

50us

TEA5767_DE_EMPHASIS_75US 

75us

Definition at line 135 of file driver_tea5767.h.

◆ tea5767_level_t

tea5767 level enumeration definition

Enumerator
TEA5767_LEVEL_LOW 

low

TEA5767_LEVEL_HIGH 

high

Definition at line 71 of file driver_tea5767.h.

◆ tea5767_mode_t

tea5767 mode enumeration definition

Enumerator
TEA5767_MODE_NORMAL 

normal mode

TEA5767_MODE_SEARCH 

search mode

Definition at line 80 of file driver_tea5767.h.

◆ tea5767_reception_t

tea5767 reception enumeration definition

Enumerator
TEA5767_RECEPTION_MONO 

mono

TEA5767_RECEPTION_STEREO 

stereo

Definition at line 154 of file driver_tea5767.h.

◆ tea5767_search_mode_t

tea5767 search mode enumeration definition

Enumerator
TEA5767_SEARCH_MODE_DOWN 

search down

TEA5767_SEARCH_MODE_UP 

search up

Definition at line 89 of file driver_tea5767.h.

◆ tea5767_search_stop_level_t

tea5767 search stop level enumeration definition

Enumerator
TEA5767_SEARCH_STOP_LEVEL_LOW 

level adc output = 5

TEA5767_SEARCH_STOP_LEVEL_MID 

level adc output = 7

TEA5767_SEARCH_STOP_LEVEL_HIGH 

level adc output = 10

Definition at line 116 of file driver_tea5767.h.

◆ tea5767_side_injection_t

tea5767 side injection enumeration definition

Enumerator
TEA5767_SIDE_INJECTION_LOW 

low side lo injection

TEA5767_SIDE_INJECTION_HIGH 

high side lo injection

Definition at line 98 of file driver_tea5767.h.

Function Documentation

◆ tea5767_deinit()

uint8_t tea5767_deinit ( tea5767_handle_t * handle)

close the chip

Parameters
[in]*handlepointer to a tea5767 handle structure
Returns
status code
  • 0 success
  • 1 iic deinit failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 power down failed
Note
none

Definition at line 173 of file driver_tea5767.c.

◆ tea5767_frequency_convert_to_data()

uint8_t tea5767_frequency_convert_to_data ( tea5767_handle_t * handle,
uint16_t pll,
float * mhz )

convert the register raw data to the frequency

Parameters
[in]*handlepointer to a tea5767 handle structure
[in]pllregister raw data
[out]*mhzpointer to a frequency buffer
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 clock is invalid
Note
none

Definition at line 1555 of file driver_tea5767.c.

◆ tea5767_frequency_convert_to_register()

uint8_t tea5767_frequency_convert_to_register ( tea5767_handle_t * handle,
float mhz,
uint16_t * pll )

convert the frequency to the register raw data

Parameters
[in]*handlepointer to a tea5767 handle structure
[in]mhzradio frequency in MHz
[out]*pllpointer to a pll buffer
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 clock is invalid
Note
none

Definition at line 1494 of file driver_tea5767.c.

◆ tea5767_get_band()

uint8_t tea5767_get_band ( tea5767_handle_t * handle,
tea5767_band_t * band )

get the band

Parameters
[in]*handlepointer to a tea5767 handle structure
[out]*bandpointer to a band buffer
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
get config in local

Definition at line 990 of file driver_tea5767.c.

◆ tea5767_get_band_limit_flag()

uint8_t tea5767_get_band_limit_flag ( tea5767_handle_t * handle,
tea5767_bool_t * enable )

get the band limit flag

Parameters
[in]*handlepointer to a tea5767 handle structure
[out]*enablepointer to a bool value buffer
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
update config by tea5767_read_conf

Definition at line 1362 of file driver_tea5767.c.

◆ tea5767_get_channel()

uint8_t tea5767_get_channel ( tea5767_handle_t * handle,
tea5767_channel_t * channel )

get the sound channel

Parameters
[in]*handlepointer to a tea5767 handle structure
[out]*channelpointer to a sound channel buffer
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
get config in local

Definition at line 672 of file driver_tea5767.c.

◆ tea5767_get_clock()

uint8_t tea5767_get_clock ( tea5767_handle_t * handle,
tea5767_clock_t * clk )

get the clock

Parameters
[in]*handlepointer to a tea5767 handle structure
[out]*clkpointer to a clock buffer
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
get config in local

Definition at line 1310 of file driver_tea5767.c.

◆ tea5767_get_de_emphasis()

uint8_t tea5767_get_de_emphasis ( tea5767_handle_t * handle,
tea5767_de_emphasis_t * emphasis )

get the de emphasis status

Parameters
[in]*handlepointer to a tea5767 handle structure
[out]*emphasispointer to an emphasis buffer
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
get config in local

Definition at line 1255 of file driver_tea5767.c.

◆ tea5767_get_high_cut_control()

uint8_t tea5767_get_high_cut_control ( tea5767_handle_t * handle,
tea5767_bool_t * enable )

get the high cut control status

Parameters
[in]*handlepointer to a tea5767 handle structure
[out]*enablepointer to a bool value buffer
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
get config in local

Definition at line 1096 of file driver_tea5767.c.

◆ tea5767_get_if()

uint8_t tea5767_get_if ( tea5767_handle_t * handle,
uint8_t * if_out )

get the if

Parameters
[in]*handlepointer to a tea5767 handle structure
[out]*if_outpointer to an if out buffer
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
update config by tea5767_read_conf

Definition at line 1414 of file driver_tea5767.c.

◆ tea5767_get_left_mute()

uint8_t tea5767_get_left_mute ( tea5767_handle_t * handle,
tea5767_bool_t * enable )

get the left mute status

Parameters
[in]*handlepointer to a tea5767 handle structure
[out]*enablepointer to a bool value buffer
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
get config in local

Definition at line 778 of file driver_tea5767.c.

◆ tea5767_get_level_adc_output()

uint8_t tea5767_get_level_adc_output ( tea5767_handle_t * handle,
uint8_t * output )

get the level adc output

Parameters
[in]*handlepointer to a tea5767 handle structure
[out]*outputpointer to an output buffer
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
update config by tea5767_read_conf

Definition at line 1466 of file driver_tea5767.c.

◆ tea5767_get_mode()

uint8_t tea5767_get_mode ( tea5767_handle_t * handle,
tea5767_mode_t * mode )

get the chip mode

Parameters
[in]*handlepointer to a tea5767 handle structure
[out]*modepointer to a mode buffer
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
get config in local

Definition at line 390 of file driver_tea5767.c.

◆ tea5767_get_mute()

uint8_t tea5767_get_mute ( tea5767_handle_t * handle,
tea5767_bool_t * enable )

get the mute status

Parameters
[in]*handlepointer to a tea5767 handle structure
[out]*enablepointer to a bool value buffer
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
get config in local

Definition at line 337 of file driver_tea5767.c.

◆ tea5767_get_pll()

uint8_t tea5767_get_pll ( tea5767_handle_t * handle,
uint16_t * pll )

get the pll

Parameters
[in]*handlepointer to a tea5767 handle structure
[out]*pllpointer to a pll buffer
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
get config in local

Definition at line 456 of file driver_tea5767.c.

◆ tea5767_get_port1()

uint8_t tea5767_get_port1 ( tea5767_handle_t * handle,
tea5767_level_t * level )

get the port1 level

Parameters
[in]*handlepointer to a tea5767 handle structure
[out]*levelpointer to a level buffer
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
get config in local

Definition at line 831 of file driver_tea5767.c.

◆ tea5767_get_port1_as_search_indicator()

uint8_t tea5767_get_port1_as_search_indicator ( tea5767_handle_t * handle,
tea5767_bool_t * enable )

get the port1 as search indicator status

Parameters
[in]*handlepointer to a tea5767 handle structure
[out]*enablepointer to a bool value buffer
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
get config in local

Definition at line 1202 of file driver_tea5767.c.

◆ tea5767_get_port2()

uint8_t tea5767_get_port2 ( tea5767_handle_t * handle,
tea5767_level_t * level )

get the port2 level

Parameters
[in]*handlepointer to a tea5767 handle structure
[out]*levelpointer to a level buffer
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
get config in local

Definition at line 884 of file driver_tea5767.c.

◆ tea5767_get_ready_flag()

uint8_t tea5767_get_ready_flag ( tea5767_handle_t * handle,
tea5767_bool_t * enable )

get the ready flag

Parameters
[in]*handlepointer to a tea5767 handle structure
[out]*enablepointer to a bool value buffer
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
update config by tea5767_read_conf

Definition at line 1336 of file driver_tea5767.c.

◆ tea5767_get_reception()

uint8_t tea5767_get_reception ( tea5767_handle_t * handle,
tea5767_reception_t * reception )

get the reception

Parameters
[in]*handlepointer to a tea5767 handle structure
[out]*receptionpointer to a reception buffer
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
update config by tea5767_read_conf

Definition at line 1440 of file driver_tea5767.c.

◆ tea5767_get_right_mute()

uint8_t tea5767_get_right_mute ( tea5767_handle_t * handle,
tea5767_bool_t * enable )

get the right mute status

Parameters
[in]*handlepointer to a tea5767 handle structure
[out]*enablepointer to a bool value buffer
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
get config in local

Definition at line 725 of file driver_tea5767.c.

◆ tea5767_get_search_mode()

uint8_t tea5767_get_search_mode ( tea5767_handle_t * handle,
tea5767_search_mode_t * mode )

get the search mode

Parameters
[in]*handlepointer to a tea5767 handle structure
[out]*modepointer to a mode buffer
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
get config in local

Definition at line 513 of file driver_tea5767.c.

◆ tea5767_get_search_stop_level()

uint8_t tea5767_get_search_stop_level ( tea5767_handle_t * handle,
tea5767_search_stop_level_t * level )

get the search stop level

Parameters
[in]*handlepointer to a tea5767 handle structure
[out]*levelpointer to a search stop level buffer
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
get config in local

Definition at line 566 of file driver_tea5767.c.

◆ tea5767_get_searched_pll()

uint8_t tea5767_get_searched_pll ( tea5767_handle_t * handle,
uint16_t * pll )

get the searched pll

Parameters
[in]*handlepointer to a tea5767 handle structure
[out]*pllpointer to a pll buffer
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
update config by tea5767_read_conf

Definition at line 1388 of file driver_tea5767.c.

◆ tea5767_get_side_injection()

uint8_t tea5767_get_side_injection ( tea5767_handle_t * handle,
tea5767_side_injection_t * side )

get the side injection

Parameters
[in]*handlepointer to a tea5767 handle structure
[out]*sidepointer to an injection side buffer
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
get config in local

Definition at line 619 of file driver_tea5767.c.

◆ tea5767_get_soft_mute()

uint8_t tea5767_get_soft_mute ( tea5767_handle_t * handle,
tea5767_bool_t * enable )

get the soft mute status

Parameters
[in]*handlepointer to a tea5767 handle structure
[out]*enablepointer to a bool value buffer
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
get config in local

Definition at line 1043 of file driver_tea5767.c.

◆ tea5767_get_standby()

uint8_t tea5767_get_standby ( tea5767_handle_t * handle,
tea5767_bool_t * enable )

get the standby status

Parameters
[in]*handlepointer to a tea5767 handle structure
[out]*enablepointer to a bool value buffer
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
get config in local

Definition at line 937 of file driver_tea5767.c.

◆ tea5767_get_stereo_noise_cancelling()

uint8_t tea5767_get_stereo_noise_cancelling ( tea5767_handle_t * handle,
tea5767_bool_t * enable )

get the stereo noise cancelling status

Parameters
[in]*handlepointer to a tea5767 handle structure
[out]*enablepointer to a bool value buffer
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
get config in local

Definition at line 1149 of file driver_tea5767.c.

◆ tea5767_info()

uint8_t tea5767_info ( tea5767_info_t * info)

get chip's information

Parameters
[out]*infopointer to a tea5767 info structure
Returns
status code
  • 0 success
  • 2 handle is NULL
Note
none

Definition at line 1664 of file driver_tea5767.c.

◆ tea5767_init()

uint8_t tea5767_init ( tea5767_handle_t * handle)

initialize the chip

Parameters
[in]*handlepointer to a tea5767 handle structure
Returns
status code
  • 0 success
  • 1 iic initialization failed
  • 2 handle is NULL
  • 3 linked functions is NULL
Note
none

Definition at line 110 of file driver_tea5767.c.

◆ tea5767_read_conf()

uint8_t tea5767_read_conf ( tea5767_handle_t * handle)

read the conf

Parameters
[in]*handlepointer to a tea5767 handle structure
Returns
status code
  • 0 success
  • 1 read conf failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 250 of file driver_tea5767.c.

◆ tea5767_set_band()

uint8_t tea5767_set_band ( tea5767_handle_t * handle,
tea5767_band_t band )

set the band

Parameters
[in]*handlepointer to a tea5767 handle structure
[in]bandset band
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
update config by tea5767_write_conf

Definition at line 963 of file driver_tea5767.c.

◆ tea5767_set_channel()

uint8_t tea5767_set_channel ( tea5767_handle_t * handle,
tea5767_channel_t channel )

set the sound channel

Parameters
[in]*handlepointer to a tea5767 handle structure
[in]channelsound channel
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
update config by tea5767_write_conf

Definition at line 645 of file driver_tea5767.c.

◆ tea5767_set_clock()

uint8_t tea5767_set_clock ( tea5767_handle_t * handle,
tea5767_clock_t clk )

set the clock

Parameters
[in]*handlepointer to a tea5767 handle structure
[in]clkset clock
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
update config by tea5767_write_conf

Definition at line 1281 of file driver_tea5767.c.

◆ tea5767_set_de_emphasis()

uint8_t tea5767_set_de_emphasis ( tea5767_handle_t * handle,
tea5767_de_emphasis_t emphasis )

set the de emphasis

Parameters
[in]*handlepointer to a tea5767 handle structure
[in]emphasisset emphasis
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
update config by tea5767_write_conf

Definition at line 1228 of file driver_tea5767.c.

◆ tea5767_set_high_cut_control()

uint8_t tea5767_set_high_cut_control ( tea5767_handle_t * handle,
tea5767_bool_t enable )

enable or disable high cut control

Parameters
[in]*handlepointer to a tea5767 handle structure
[in]enablebool value
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
update config by tea5767_write_conf

Definition at line 1069 of file driver_tea5767.c.

◆ tea5767_set_left_mute()

uint8_t tea5767_set_left_mute ( tea5767_handle_t * handle,
tea5767_bool_t enable )

enable or disable left mute

Parameters
[in]*handlepointer to a tea5767 handle structure
[in]enablebool value
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
update config by tea5767_write_conf

Definition at line 751 of file driver_tea5767.c.

◆ tea5767_set_mode()

uint8_t tea5767_set_mode ( tea5767_handle_t * handle,
tea5767_mode_t mode )

set the chip mode

Parameters
[in]*handlepointer to a tea5767 handle structure
[in]modeset mode
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
update config by tea5767_write_conf

Definition at line 363 of file driver_tea5767.c.

◆ tea5767_set_mute()

uint8_t tea5767_set_mute ( tea5767_handle_t * handle,
tea5767_bool_t enable )

enable or disable the mute

Parameters
[in]*handlepointer to a tea5767 handle structure
[in]enablebool value
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
update config by tea5767_write_conf

Definition at line 310 of file driver_tea5767.c.

◆ tea5767_set_pll()

uint8_t tea5767_set_pll ( tea5767_handle_t * handle,
uint16_t pll )

set the pll

Parameters
[in]*handlepointer to a tea5767 handle structure
[in]pllset pll
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 pll > 0x3FFF
Note
update config by tea5767_write_conf pll <= 0x3FFF

Definition at line 418 of file driver_tea5767.c.

◆ tea5767_set_port1()

uint8_t tea5767_set_port1 ( tea5767_handle_t * handle,
tea5767_level_t level )

set the port1 level

Parameters
[in]*handlepointer to a tea5767 handle structure
[in]levelset level
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
update config by tea5767_write_conf

Definition at line 804 of file driver_tea5767.c.

◆ tea5767_set_port1_as_search_indicator()

uint8_t tea5767_set_port1_as_search_indicator ( tea5767_handle_t * handle,
tea5767_bool_t enable )

enable or disable port1 as search indicator

Parameters
[in]*handlepointer to a tea5767 handle structure
[in]enablebool value
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
update config by tea5767_write_conf

Definition at line 1175 of file driver_tea5767.c.

◆ tea5767_set_port2()

uint8_t tea5767_set_port2 ( tea5767_handle_t * handle,
tea5767_level_t level )

set the port2 level

Parameters
[in]*handlepointer to a tea5767 handle structure
[in]levelset level
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
update config by tea5767_write_conf

Definition at line 857 of file driver_tea5767.c.

◆ tea5767_set_right_mute()

uint8_t tea5767_set_right_mute ( tea5767_handle_t * handle,
tea5767_bool_t enable )

enable or disable right mute

Parameters
[in]*handlepointer to a tea5767 handle structure
[in]enablebool value
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
update config by tea5767_write_conf

Definition at line 698 of file driver_tea5767.c.

◆ tea5767_set_search_mode()

uint8_t tea5767_set_search_mode ( tea5767_handle_t * handle,
tea5767_search_mode_t mode )

set the search mode

Parameters
[in]*handlepointer to a tea5767 handle structure
[in]modesearch mode
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
update config by tea5767_write_conf

Definition at line 486 of file driver_tea5767.c.

◆ tea5767_set_search_stop_level()

uint8_t tea5767_set_search_stop_level ( tea5767_handle_t * handle,
tea5767_search_stop_level_t level )

set the search stop level

Parameters
[in]*handlepointer to a tea5767 handle structure
[in]levelsearch stop level
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
update config by tea5767_write_conf

Definition at line 539 of file driver_tea5767.c.

◆ tea5767_set_side_injection()

uint8_t tea5767_set_side_injection ( tea5767_handle_t * handle,
tea5767_side_injection_t side )

set the side injection

Parameters
[in]*handlepointer to a tea5767 handle structure
[in]sideinjection side
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
update config by tea5767_write_conf

Definition at line 592 of file driver_tea5767.c.

◆ tea5767_set_soft_mute()

uint8_t tea5767_set_soft_mute ( tea5767_handle_t * handle,
tea5767_bool_t enable )

enable or disable soft mute

Parameters
[in]*handlepointer to a tea5767 handle structure
[in]enablebool value
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
update config by tea5767_write_conf

Definition at line 1016 of file driver_tea5767.c.

◆ tea5767_set_standby()

uint8_t tea5767_set_standby ( tea5767_handle_t * handle,
tea5767_bool_t enable )

enable or disable standby

Parameters
[in]*handlepointer to a tea5767 handle structure
[in]enablebool value
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
update config by tea5767_write_conf

Definition at line 910 of file driver_tea5767.c.

◆ tea5767_set_stereo_noise_cancelling()

uint8_t tea5767_set_stereo_noise_cancelling ( tea5767_handle_t * handle,
tea5767_bool_t enable )

enable or disable stereo noise cancelling

Parameters
[in]*handlepointer to a tea5767 handle structure
[in]enablebool value
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
update config by tea5767_write_conf

Definition at line 1122 of file driver_tea5767.c.

◆ tea5767_update_conf()

uint8_t tea5767_update_conf ( tea5767_handle_t * handle,
uint8_t conf[5] )

update the conf

Parameters
[in]*handlepointer to a tea5767 handle structure
[in]*confpointer to a conf buffer
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 284 of file driver_tea5767.c.

◆ tea5767_write_conf()

uint8_t tea5767_write_conf ( tea5767_handle_t * handle)

write the conf

Parameters
[in]*handlepointer to a tea5767 handle structure
Returns
status code
  • 0 success
  • 1 write conf failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 216 of file driver_tea5767.c.