Hilscher netX microcontroller driver
V0.0.5.0
Documentation of the netX driver package
|
Type definiton of a i2c address. More...
#include <netx_drv_i2c.h>
Data Fields | |
uint16_t | uDeviceAddress:10 |
DRV_I2C_ADDRESS_SCHEME_E | eAddressingScheme:6 |
Type definiton of a i2c address.
Target addresses are handled as followed:
0b111110AAAAAAAAAAus
is treated as 10-bit addressing.
0b100001MMMAAAAAAAus
is treated as master code with 7-bit addessing.
0b100000NNNAAAAAAAus
is treated as 7-bit addessing.
0b0NNNNNNNNNNNNNNNus
Indicates an invalid address. To make use of it, there is the macros
DRV_I2C_ADDRESSING_10_BIT = 0b0111100000000000us
and
DRV_I2C_ADDRESSING_7_BIT = 0b1000000000000000us
or one might use the structure defined. The Master Code ID has to be put into the upper three bits of the uDeviceAddress.
Symbol | Description |
---|---|
0b | Start of binary sequence |
N | Ignore value |
M | Master code id |
A | Address bit |
~ | Bitwise NOT |
us | Unsigned short (uint16_t) |
Definition at line 273 of file netx_drv_i2c.h.
DRV_I2C_ADDRESS_SCHEME_E DRV_I2C_ADDRESS_T::eAddressingScheme |
The addressing scheme used.
Definition at line 276 of file netx_drv_i2c.h.
uint16_t DRV_I2C_ADDRESS_T::uDeviceAddress |
The device address in 10 bit. In case of Master code the 7bit with master code.
Definition at line 275 of file netx_drv_i2c.h.