mirror of
https://github.com/jialexd/sdk-ameba-v4.0c_180328.git
synced 2026-07-13 15:05:43 +00:00
first add sdk
This commit is contained in:
commit
f91efd1250
3915 changed files with 1291882 additions and 0 deletions
22
component/common/drivers/i2s/alc5680.h
Executable file
22
component/common/drivers/i2s/alc5680.h
Executable file
|
|
@ -0,0 +1,22 @@
|
|||
#ifndef _ALC5680_H_
|
||||
#define _ALC5680_H_
|
||||
|
||||
#define RT5680_DEVICE_ID 0x6385
|
||||
|
||||
|
||||
void alc5680_status();
|
||||
void alc5680_write_data_to_flash(const unsigned char *data_value,unsigned int len,unsigned int addr);
|
||||
void alc5680_erase();
|
||||
void alc5680_i2c_init(void);
|
||||
u8 alc5680_reg_read_16(u32 reg, u16* val);
|
||||
u8 alc5680_reg_read_32(u32 reg, u32* val);
|
||||
u8 alc5680_reg_write_32(u32 reg, u32 val);
|
||||
u8 alc5680_reg_write_16b(u32 reg, u16 val);
|
||||
|
||||
void alc5680_get_info(unsigned char *buffer);
|
||||
void alc5680_handler_function(unsigned char *buffer,int len,unsigned int index);
|
||||
void alc5680_check_sum();
|
||||
int alc5680_get_version();
|
||||
void set_alc5680_volume(unsigned char left,unsigned char right);
|
||||
void get_alc5680_volume(unsigned short *value);//high byte is left and low byte is high
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue