Philips Bluetooth QuickStart Kit Uživatelský manuál Strana 67

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 74
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 66
Bluetooth QuickStart Kit Version 1.0 - User’s Guide Page 67
Copyright 2004-2005 © Embedded Artists AB
I2C_CODE_OK – The function completed successfully
I2C_CODE_ERROR – an error occurred
B.8.7 i2cWaitTransmit
tS8 i2cWaitTransmit( void )
Wait until data has been transmitted.
Parameters:
[in] addr – the address to write to
[in] pData – the data to transmit
[in] len – number of bytes to transmit
Returns:
I2C_CODE_OK – The function completed successfully
I2C_CODE_ERROR – an error occurred
B.8.8 i2cWriteWithWait
tS8 i2cWriteWithWait( tU8 data )
Send a character on the I2C network and wait until it has been transmitted.
Parameters:
[in] data – the data to transmit
Returns:
I2C_CODE_OK – The function completed successfully
I2C_CODE_BUSY – data register is not ready -> byte was not sent
B.8.9 i2cRead
tS8 i2cRead( tU8 addr, tU8* pBuf, tU16 len )
Read a specified number of bytes from the I2C network.
Note: After this function is run, you may need a bus free time before a new data transfer
can be initiated.
Parameters:
[in] addr – the address to read from
[in] pBuf – the read data is stored in this buffer
[in] len – number of bytes to read
Returns:
I2C_CODE_OK or I2C status code (see i2cCheckStatus)
Zobrazit stránku 66
1 2 ... 62 63 64 65 66 67 68 69 70 71 72 73 74

Komentáře k této Příručce

Žádné komentáře