lophtware

Logo

lophtware projects

GitHub Profile

I2C - Protected RAM Address Mask (Slave)

Report Type: IN / OUT
Report Size: 3 Bytes

Report ID Mask LSB Mask MSB
00010000 mmmmmmmm z 00000 mm

Report ID

HID Report ID. Always 0x10.

Mask

The 10-bit address mask that represents the ‘protected’ (read-only) area of the RAM Bank. This stops any I2C Masters writing to portions of the RAM whilst they are accessing the device as a Slave. It does not affect writes via the USB. See the I2C RAM Bank page for more information.

Note that using the mask scheme the byte at address 0x000 is always writable, ie. it cannot be protected. This is the purpose of the z flag, which when set to 1 will prevent writes to 0x000 as well.

This field is Little Endian, ie. the Least Significant Byte of the word appears first. Bit numbering within the constituent bytes is unaffected.