9.7 i2c_simple_master.c File Reference
Includes
- .././i2c2_master.h
- i2c_simple_master.h
Functions
- i2c2_operations_t
-
wr1RegCompleteHandler (void *p)
Parameters:
- p
- Type: void *
Returns:
None
- void
-
i2c_write1ByteRegister (i2c2_address_t address, uint8_t reg, uint8_t data)
Parameters:
- address
Type: i2c2_address_t
[type]i2c_address_t The slave address [in] reg [type]uint8_t The register address to be written to [in] data [type]uint8_t The data to be written
Returns:
- void
-
i2c_writeNBytes (i2c2_address_t address, void *data, size_t len)
Parameters:
- address
Type: i2c2_address_t
[type]i2c_address_t Slave address [in] data [type]uint8_t Array of data to be send [in] len [type]uint8_t The size of the array
Returns:
- i2c2_operations_t
-
rd1RegCompleteHandler (void *p)
Parameters:
- p
- Type: void *
Returns:
None
- uint8_t
-
i2c_read1ByteRegister (i2c2_address_t address, uint8_t reg)
Parameters:
- address
Type: i2c2_address_t
[type]i2c_address_t Slave address [in] reg [type]uint8_t The register address to be read
Returns:
- i2c2_operations_t
-
rd2RegCompleteHandler (void *p)
Parameters:
- p
- Type: void *
Returns:
None
- uint16_t
-
i2c_read2ByteRegister (i2c2_address_t address, uint8_t reg)
Parameters:
- address
Type: i2c2_address_t
[type]i2c_address_t Slave address [in] reg [type]uint8_t The register address to be read
Returns:
- i2c2_operations_t
-
wr2RegCompleteHandler (void *p)
Parameters:
- p
- Type: void *
Returns:
None
- void
-
i2c_write2ByteRegister (i2c2_address_t address, uint8_t reg, uint16_t data)
Parameters:
- address
Type: i2c2_address_t
[type]i2c_address_t The slave address [in] reg [type]uint8_t The register address to be written to [in] data [type]uint8_t The data to be written
Returns:
- i2c2_operations_t
-
rdBlkRegCompleteHandler (void *p)
Parameters:
- p
- Type: void *
Returns:
None
- void
-
i2c_readDataBlock (i2c2_address_t address, uint8_t reg, void *data, size_t len)
Parameters:
- address
Type: i2c2_address_t
[type]i2c_address_t Slave address [in] reg [type]uint8_t The register address to be read [out] data [type]void* The read data block [in] len [type]size_t The size of data block
Returns:
- void
-
i2c_readNBytes (i2c2_address_t address, void *data, size_t len)
Parameters:
- address
Type: i2c2_address_t
[type]i2c_address_t Slave address [out] data [type]void* The read data block [in] len [type]size_t The size of data block
Returns: