Specifications
Built-in function poke():
The STM32W108xB chips use a 32-bit architecture, so the signature for the poke() function has
changed to accommodate the larger address space and the potential for different value sizes being
poked. The new function signature is:
peek(addrHi, addrLow, word, data)
with word = 0 or word = 1, or
peek(addrHi, addrLow, word, dataHi, dataLow)
with word = 2.
The addrHi and addrLow parameters are 16-bit values. The word parameter determines the size and
character data being poked:
• word = 0: data value is one byte, in the range 0 to 255 (0x00 to 0xFF).
• word = 1: data value is one 16-bit signed integer, in the range -32768 to 32767 (0x0000 to
0xFFFF).
• word = 2: pokes a 32-bit value, specified as two data values in dataHi and dataLow.
Pokes that store values larger than one byte must be appropriately word-aligned. In other words, the
addrLow value must be even for a poke of a 16-bit value, and must be a multiple of 4 for a 32-bit
poke. If you are not appropriately word-aligned, the result of your poke is undefined, and may result in
system issues with your module.
SNAP Reference Manual Document Number 600-0007K Page 191 of 202