Set when the ncp has indicated it has a pending callback by seting the callback flag in the frame control byte or (uart version only) by sending an an ASH_WAKE byte between frames.
NCP is enabled to sleep, set by EZSP, not supported atm, always false
Readonly
reReadonly
rxReadonly
rxReadonly
txReadonly
txIndicates if the host is in the Connected state. If not, the host and NCP cannot exchange DATA frames. Note that this function does not actively confirm that communication with NCP is healthy, but simply returns its last known status.
Has nothing to do...
Check if port is valid, open, and not closing.
Get max wait time before response is considered timed out.
Get the frame type from the control byte and validate it against the frame length.
Frame length
AshFrameType.INVALID if bad control/length otherwise the frame type.
Randomizes array contents by XORing with an 8-bit pseudo random sequence. This reduces the likelihood that byte-stuffing will greatly increase the size of the payload. (This could happen if a DATA frame contained repeated instances of the same reserved byte value.)
zero initializes the random sequence a non-zero value continues from a previous invocation
IN/OUT pointer to the array whose contents will be randomized
number of bytes in the array to modify
last value of the sequence. If a buffer is processed in two or more chunks, as with linked buffers, this value should be passed back as the value of the seed argument
Initializes the ASH serial port and (if enabled) resets the NCP. The method used to do the reset is specified by the the host configuration parameter resetMethod.
When the reset method is sending a RST frame, the caller should retry NCP resets a few times if it fails.
Adds a DATA frame to the transmit queue to send to the NCP. Frames that are too long or too short will not be sent, and frames will not be added to the queue if the host is not in the Connected state, or the NCP is not ready to receive a DATA frame or if there is no room in the queue;
length of data field
array containing the data to be sent
Initializes the ASH protocol, and waits until the NCP finishes rebooting, or a non-recoverable error occurs.
ASH Protocol handler.