Expand description
The SX1250 front ends a concentrator listens through.
A concentrator has no radio of its own. An SX1250 sits on each chain, and that is what a carrier is tuned to: the concentrator only ever sees an intermediate frequency. Both front ends are reached through the concentrator, on the same SPI device, with the first byte of every frame naming the front end rather than the concentrator.
A front end gives the host no BUSY line to watch, so the wait before a frame is a flat millisecond rather than a pin. The reference does the same.
Nothing here opens a bus. The framing, the register value a carrier becomes, the bands image calibration is run over, and the order a front end is brought up in are all data, so each one can be checked against the reference with no hardware present.
Enums§
Constants§
- CALIBRATE_
ALL - The mask that runs every calibration the chip has.
- HEADER_
LEN - How many bytes of framing come before a command payload.
- IMAGE_
CALIBRATE_ US - How long image calibration is given to finish, in microseconds.
- MODE_
STANDBY_ RC - The mode a front end reports once it is in standby on its own oscillator.
- MODE_
STANDBY_ XOSC - The mode it reports once it is in standby on the crystal.
- OP_
CALIBRATE - Runs the calibrations named by a mask.
- OP_
CALIBRATE_ IMAGE - Runs image calibration over a band.
- OP_
GET_ DEVICE_ ERRORS - Reads what the chip believes went wrong.
- OP_
GET_ STATUS - Reads the chip status, which carries the mode it is in.
- OP_
SET_ RF_ FREQUENCY - Sets the carrier.
- OP_
SET_ RX - Puts the front end in receive.
- OP_
SET_ STANDBY - Selects a standby mode.
- OP_
WRITE_ REGISTER - Writes one of the registers behind the command set.
- RX_
CONTINUOUS - The timeout that means receive forever.
- SETTLE_
US - How long a mode change is given to settle, in microseconds.
- WAIT_
BUSY_ US - How long to wait before a frame, in microseconds.
- XTAL_HZ
- The crystal the front end counts its carrier in, in hertz.
Functions§
- frequency_
bytes - Splits a carrier into the four bytes the frequency command takes.
- frequency_
value - Turns a carrier into the value the frequency command takes.
- header
- The two bytes every frame to a front end starts with.
- image_
band - The pair of bytes image calibration takes for the band a carrier is in.
- image_
failed - Whether the device errors say image calibration failed.
- mode
- The mode a status byte reports.
- setup
- The order a front end is brought up in.
- target
- Which front end a chain talks to.