void cfa_bsc_Configure(UINT8 newConfig); // To configure the I2C serial interface. The configuration values include: // - Clock Rate // - Clock divider // - Delay disable // - Deglitch disable
CFA_BSC_STATUS cfa_bsc_OpExtended(UINT8* buf, UINT16 bufCount, UINT8* addr, UINT8 addrCount, UINT8 slaveAdr, UINT8 operation); // This function performs blocking read/writes, both addressed and unaddressed // The amount of data read/written can exceed 8. The address is assumed to be in // big endian format. // Input: // - Pointer to data buffer. For reads, this is where data will be read into // For writes, data will be written from here. // - Number of bytes to read/write from the buffer. // - Pointer to address. Only valid if address count is non-zero; if address count is // zero, it must be set to 0. This is the address that is sent to the device // before the operation. In the case of a read, the address is written followed // by a read. For a write, the address is written, followed by the data. // The address is assumed to be in big endian format. This is pertinent only // if the operation requires multiple hardware operations to complete; otherwise // it is of no significance. The maximum number of bytes that can be read // in a single hardware transaction is 8 and the maximum that can be written // is 8 - address size. Note that the address will be modified // - Number of address bytes. If this is zero, no address is written before the // operation. If non-zero, the address is written before the read/write. In // case of a write, the size of the address plus the size of the data must be <= 8 // - Slave address // - Operation (read/write) #endif
thanks for the pointer to the documentation for cfa_bsc_OpExtended. Perhaps my statement
in the API documentation, "cfa" isn't mentioned
was confusing. The "API documentation" I was referring to there was the HTML documentation at Components/Peripheral Drivers/I2C, which documents routines i2cm_*, which nobody appears to use, and don't seem to work.
But no, it really doesn't answer the four questions I posed.