LR1121
User Manual Rev 1.1
UM.LR1121.W.APP Mar 2023
34 of 130
Semtech
Proprietary & Confidential
www.semtech.com
3.7.8 EnableSpiCrc
This command enables / disables an 8-bit CRC on the Serial Peripheral Interface.
CRC generation uses a polynomial generator 0x65 (reversed reciprocal), initial value 0xFF. The CRC is calculated on all data
received on the MOSI signal (including Opcode) and on all data sent on the MISO signal (including all status).
This command is always protected by the CRC:
• To enable the CRC, the CRC must already be appended in this command. As an example: the whole command to
enable is 0x01 0x28 0x01 0x20.
• To disable the CRC, the CRC must be appended to the command since it is still enabled. As an example: the whole
command to disable is 0x01 0x28 0x00 0x1C.
• Enable: enables / disables an 8-bit CRC on the SPI interface.
0: Disabled. No CRC is expected or sent on the SPI (default).
1: Enabled. A CRC is expected and sent on the SPI.
Other values are RFU.
• CRC: cyclic redundancy check.
Table 3-17: EnableSpiCrc Command
Byte 0 1 2 3
Data from Host 0x01 0x28 Enable CRC
Data to Host Stat1 Stat2 IrqStatus (31:24) IrqStatus (23:16)