Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages  

I2C

Functions


Function Documentation

void Get_I2C unsigned short  DeviceAddr,
unsigned char *  I2C_DataPointer,
unsigned short  Count
 

Read (master mode) from I2C a stream of data.

Parameters:
DeviceAddr I2C address
I2C_DataPointer Data pointer to data storage
Count Number of data to be read
See also:
Reset_I2C, Set_I2C, Set_I2C_Rate

void Reset_I2C void   ) 
 

Reset I2C channel, clear errors, interrupt and flush tx and rx fifos.

See also:
Set_I2C, Get_I2C

void Set_I2C unsigned short  DeviceAddr,
unsigned char *  I2C_DataPointer,
unsigned short  Count,
unsigned short  I2C_Length
 

Write (master mode) on I2C a stream of data.

Parameters:
DeviceAddr I2C address
I2C_DataPointer Data pointer to command list
Count Number of data to be write
I2C_Length Number of byte for each command
        unsigned char AudioConfig[] = { 
                        PWDC,   0xFF,  
                        LLVC,   0x1d,
                        RLVC,   0x1d,
                        LHVC,   0xff,
                        RHVC,   0xff,
                        AAPC,   DAC,
                        DAPC,   0,
                        PWDC,   0,
                        DAIF,   MS|FOR|LRP,
                        SARC,   0x23,
                        DIAC,   ACT|RES 
        };
        Set_I2C(AIC23B_ADDRESS >> 1, AudioConfig, 11, 2);
See also:
Reset_I2C, Get_I2C, Set_I2C_Rate


Generated on Tue Apr 7 20:07:44 2015 for BF592A Library by doxygen 1.3.1