Get the frame control, ID and params index according to format version. Throws if frame control is unsupported (using reserved).
Anything but SUCCESS should stop further processing.
EZSP switched to using SLStatus for command returns from version 14.
EZSP protocol version in use
If true, map from EmberStatus, otherwise map from EzspStatus
EzspStatus, EmberStatus or SLStatus as SLStatus
Write a uint8_t for payload length, followed by payload buffer (copied at post-length position).
WARNING: payload
must have a valid length (as in, not a Buffer allocated to longer length).
Should be passed with getWritten() in most cases.
Get the byte at given position without affecting the internal position tracker.