Register and protocol reference¶
SPI frames are 16 bits. Bit 15 is even parity. In a command, bit 14 selects a read and bits 13:0 carry the address. In a response, bit 14 is the error flag and bits 13:0 carry data. Read responses are delayed by one frame, so ordinary reads send a command followed by NOP.
Address |
Symbol |
Purpose |
|---|---|---|
|
|
Retrieves a pending response without requesting another register. |
|
|
Returns and clears communication error flags. |
|
|
Zero-position bits 13:6. |
|
|
Zero-position bits 5:0. |
|
|
AGC and magnetic diagnostic flags. |
|
|
14-bit CORDIC magnitude. |
|
|
14-bit compensated angle. |
registers.h also defines masks, offsets, angle conversion constants, field
helpers, response helpers, and zero-position split/combine macros. Programming
control symbols are defined for completeness, but the public driver provides
no OTP programming operation.