An example of a signed register is the calibration value of the PCF8523 real-time clock, which stores values from -64 to +63 in 7 bits. This could now be specified as
Note that assigning a negative value to an RWBits already worked, regardless of whether the register was signed, so it was already possible to write -2 to the register; this just allows it to be read back as -2 instead of 126.
An example of a signed register is the calibration value of the PCF8523 real-time clock, which stores values from -64 to +63 in 7 bits. This could now be specified as
Note that assigning a negative value to an RWBits already worked, regardless of whether the register was signed, so it was already possible to write -2 to the register; this just allows it to be read back as -2 instead of 126.