__value_in_regs IICLines HAL_IICSetLines(int bus, IICLines lines)
Entry | |
---|---|
bus | Bus number to modify |
lines | IICLines structure containing settings to apply |
Exit | |
---|---|
a1-a2 | IICLines structure containing the values as read back from the bus |
This is an internal call for OS use only and should not be used by user software.
Sets the SDA and SCL lines on the specified bus. A 0 value represents logic LOW, 1 logic HIGH. The function then reads back and returns the values present on the bus, to permit arbitration.
Note the “__value_in_regs” keyword, which signifies that the binary ABI expects SDA and SCL to be returned in registers a1 and a2.