gos_i2c_device_t Struct Reference
I2C peripheral context used by direct APIs. More...
Data Fields |
|
| gos_i2c_t | port |
|
The I2C peripheral port.
|
|
| uint32_t | speed |
|
I2C clock speed.
|
|
| uint16_t | address |
|
I2C slave address.
|
|
| uint16_t | retries |
|
Number of times to retry a read/write.
|
|
| uint16_t | read_timeout |
|
Max time in milliseconds to wait for each read byte (.
More...
|
|
| uint8_t | flags |
|
Device flags.
|
|
| gos_i2c_address_width_t | address_width |
|
Indicates the number of bits that the slave device uses for addressing.
|
|
Detailed Description
I2C peripheral context used by direct APIs.
Field Documentation
◆ read_timeout
| uint16_t gos_i2c_device_t::read_timeout |
Max time in milliseconds to wait for each read byte (.
- Note
- if set to 0 then defaults to 10ms)