Specifications

Built-in functions peekRadio() and pokeRadio():
The internal radio registers inside the STM32W108xB are not documented by ST. Instead, they supply
a binary (no source code) library of routines with which to control the lowest level functionality of the
internal radio.
For this reason, the peekRadio() and pokeRadio() functions as implemented in this version of SNAP
are somewhat non-standard: they do not provide access to low-level radio registers. Instead they
provide a means to invoke low-level API functions that normally would not otherwise be available to
the user.
All of the “addresses” in the following two tables are a total fabrication (they can be considered
“virtual addresses”).
peekRadio(address) What it really does…
0-4 Always returns 0
5 Returns the result of calling ST_RadioCheckRadio():
0 if the radio does NOT need to be recalibrated
1 if the radio DOES need to be recalibrated
(see pokeRadio(5, xx) in the next table)
Any other “address” Always returns 0
pokeRadio(address, value) What it really does…
0 Invokes ST_RadioSetPowerMode(value)
1 Invokes either ST_RadioStartTransmitTone()
(when value == 1)
or ST_RadioStopTransmitTone()
(when value == 0)
2 Invokes either ST_RadioStartTransmitStream()
(when value == 1)
or ST_RadioStopTransmitStream()
(when value == 0)
3 Invokes ST_RadioSetPower(value)
4 Invokes ST_RadioSetEdCcaThreshold(value)
5 Invokes ST_RadioCalibrateCurrentChannel()
(regardless of value). You might choose to do this if peekRadio(5)
returns 1
6 Invokes ST_RadioSetChannelAndForceCalibration(value)
Where value should be a 802.15.4 channel number 11-26
Page 192 of 202 SNAP Reference Manual Document Number 600-0007K