|
#define WriteI2CRegister |
( |
_port, |
|
|
_i2caddr, |
|
|
_reg, |
|
|
_val, |
|
|
_result |
|
) |
__MSWriteToRegister(_port, _i2caddr, _reg, _val, _result) |
Write I2C register.
Write a single byte to an I2C device register.
- Parameters:
-
| _port | The port to which the I2C device is attached. See the NBC Input port constants group. You may use a constant or a variable. |
| _i2caddr | The I2C device address. |
| _reg | The I2C device register to which to write a single byte. |
| _val | The byte to write to the I2C device. |
| _result | A status code indicating whether the write completed successfully or not. See TCommLSCheckStatus for possible Result values. |
|