deprecated TWI-Wrapper features More...
Functions | |
int8_t | readBit (uint8_t devAddr, uint8_t regAddr, uint8_t bitNum, uint8_t *data) |
Read a single bit from an 8-bit device register. More... | |
int8_t | readBits (uint8_t devAddr, uint8_t regAddr, uint8_t bitStart, uint8_t bitLength, uint8_t *data) |
Read multiple bits from an 8-bit device register. More... | |
int8_t | readByte (uint8_t devAddr, uint8_t regAddr, uint8_t *data) |
Read single byte from an 8-bit device register. More... | |
int8_t | readBytes (uint8_t devAddr, uint8_t regAddr, uint8_t byteCount, uint8_t *data) |
Read multiple bytes from an 8-bit device register. More... | |
char | writeBit (uint8_t devAddr, uint8_t regAddr, uint8_t bitNum, uint8_t data) |
Write a single bit in an 8-bit device register. More... | |
char | writeBits (uint8_t devAddr, uint8_t regAddr, uint8_t bitStart, uint8_t bitLength, uint8_t data) |
Write multiple bits in an 8-bit device register. More... | |
char | writeByte (uint8_t devAddr, uint8_t regAddr, uint8_t data) |
Write single byte to an 8-bit device register. More... | |
char | writeBytes (uint8_t devAddr, uint8_t regAddr, uint8_t byteCount, uint8_t *data) |
Write multiple bytes to an 8-bit device register. More... | |
deprecated TWI-Wrapper features
int8_t readBit | ( | uint8_t | devAddr, |
uint8_t | regAddr, | ||
uint8_t | bitNum, | ||
uint8_t * | data | ||
) |
Read a single bit from an 8-bit device register.
Function is deprecated!
Internal conversion:
int8_t readBit(uint8_t devAddr, uint8_t regAddr, uint8_t bitNum, uint8_t *data) { int8_t status; status = !twiWrapper_readBit(2*devAddr, regAddr, bitNum, data); *data&= _BV(bitNum); return status; }
int8_t readBits | ( | uint8_t | devAddr, |
uint8_t | regAddr, | ||
uint8_t | bitStart, | ||
uint8_t | bitLength, | ||
uint8_t * | data | ||
) |
Read multiple bits from an 8-bit device register.
Function is deprecated!
Internal conversion:
int8_t readBits(uint8_t devAddr, uint8_t regAddr, uint8_t bitStart, uint8_t bitLength, uint8_t *data) { return !twiWrapper_readBits(2*devAddr, regAddr, bitStart-bitLength + 1, bitLength, data); }
int8_t readByte | ( | uint8_t | devAddr, |
uint8_t | regAddr, | ||
uint8_t * | data | ||
) |
Read single byte from an 8-bit device register.
Function is deprecated!
Internal conversion:
int8_t readByte(uint8_t devAddr, uint8_t regAddr, uint8_t *data) { return !twiWrapper_readByte(2*devAddr, regAddr, data); }
int8_t readBytes | ( | uint8_t | devAddr, |
uint8_t | regAddr, | ||
uint8_t | byteCount, | ||
uint8_t * | data | ||
) |
Read multiple bytes from an 8-bit device register.
Function is deprecated!
Internal conversion:
int8_t readBytes(uint8_t devAddr, uint8_t regAddr, uint8_t byteCount, uint8_t *data) { if (twiWrapper_readBytes(2*devAddr, regAddr, byteCount, data)) { return byteCount; } else { return -1; } }
char writeBit | ( | uint8_t | devAddr, |
uint8_t | regAddr, | ||
uint8_t | bitNum, | ||
uint8_t | data | ||
) |
Write a single bit in an 8-bit device register.
Function is deprecated!
Internal conversion:
char writeBit(uint8_t devAddr, uint8_t regAddr, uint8_t bitNum, uint8_t data) { return twiWrapper_writeBit(2*devAddr, regAddr, bitNum, data); }
char writeBits | ( | uint8_t | devAddr, |
uint8_t | regAddr, | ||
uint8_t | bitStart, | ||
uint8_t | bitLength, | ||
uint8_t | data | ||
) |
Write multiple bits in an 8-bit device register.
Function is deprecated!
Internal conversion:
char writeBits(uint8_t devAddr, uint8_t regAddr, uint8_t bitStart, uint8_t bitLength, uint8_t data) { return twiWrapper_writeBits(2*devAddr, regAddr, bitStart-bitLength + 1, bitLength, data); }
char writeByte | ( | uint8_t | devAddr, |
uint8_t | regAddr, | ||
uint8_t | data | ||
) |
Write single byte to an 8-bit device register.
Function is deprecated!
Internal conversion:
char writeByte(uint8_t devAddr, uint8_t regAddr, uint8_t data) { return twiWrapper_writeByte(2*devAddr, regAddr, data); }
char writeBytes | ( | uint8_t | devAddr, |
uint8_t | regAddr, | ||
uint8_t | byteCount, | ||
uint8_t * | data | ||
) |
Write multiple bytes to an 8-bit device register.
Function is deprecated!
Internal conversion:
char writeBytes(uint8_t devAddr, uint8_t regAddr, uint8_t byteCount, uint8_t *data) { return twiWrapper_writeBytes(2*devAddr, regAddr, byteCount, data); }