Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/gf/dev_guide/api/gf_i2c_write.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/gf/dev_guide/api/gf_i2c_write.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/gf/dev_guide/api/gf_i2c_write.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/gf/dev_guide/api/gf_i2c_write.html on line 8
Perform an I2C master-write transaction
#include <gf/gf.h>
int gf_i2c_write ( gf_dev_t gdev,
int busno,
int slaveaddr,
uint8_t * odata,
int obytes );
- gdev
- The handle for the graphics device to peform the transaction on. This is the handle acquired by gf_dev_attach().
- busno
- Index of the I2C bus, on which this device is capable of being a master.
- slaveaddr
- The address of the I2C slave device.
- odata
- A pointer to a buffer where the outgoing data is stored.
- obytes
- The number of bytes to write. The maximum is 128 bytes.
gf
This function performs an I2C master-write transaction.
- GF_ERR_OK
- Success.
- GF_ERR_PARM
- The busno index is out of range for the specified device.
- GF_ERR_IODISPLAY
- Error communicating with io-display. Check to ensure that io-display is still running. The sloginfo utility may provide more information.
- GF_ERR_IO
- Hardware error reading from the slave device. The sloginfo utility may provide more information.
- GF_ERR_TOOBIG
- The number of bytes requested to be written (obytes) is larger than the maximum of 128.
QNX Graphics Framework
Safety: | |
Interrupt handler |
No |
Signal handler |
No |
Thread |
Yes |
gf_i2c_read(),
gf_i2c_writeread()
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/gf/dev_guide/api/gf_i2c_write.html on line 158
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/gf/dev_guide/api/gf_i2c_write.html on line 158