Skip to main content

Module chip

Module chip 

Source
Expand description

Telling the concentrator apart from its relatives, and from nothing at all.

Two questions get asked of a board before anything is loaded onto it. The version register answers the first: a concentrator that is powered, wired the right way round, and clocked reads back EXPECTED_VERSION, and a board that reads anything else is not talking.

The part number answers the second, and it lives in one-time programmable memory rather than a register, so it takes two transfers: select the byte, then read it. The SX1302 and the SX1303 are the same silicon to the SPI bus, and only this byte separates them.

Enums§

Model
Which concentrator this is.
Step
A step in reading the part number.

Constants§

EXPECTED_VERSION
What the version register reads on a concentrator that is answering.
MODEL_BYTE_ADDRESS
Where the part number sits in the one-time programmable memory.

Functions§

answers
Whether the version register says a concentrator is answering.
identify
The transfers that read the part number, in order.