9.8 i2c_simple_master.h File Reference
Includes
- stdint.h
- stdio.h
- .././i2c2_master.h
Functions
- 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:
- 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:
- 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_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:
- 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:
- 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: