Expand description
Asynchronous Serial Host version 2 (ASHv2)
This library implements the Asynchronous Serial Host version 2, ASHv2 for short.
It provides frame parsing and actor futures that manage the host-side serial link.
You can find the protocol’s definition on siliconlabs.com.
This library is free software and is not affiliated with Silicon Labs.
Structs§
- Futures
- Futures returned by
crate::startto drive the asynchronousASHv2actor. - Handle
- User-facing handle for sending payloads to the
ASHv2actor.
Enums§
- Flow
Control - Flow control modes
Constants§
- MAX_
PAYLOAD_ SIZE - Maximum payload size in bytes.
Traits§
- Baud
Rate - Available baud rates that the NCP can operate on.
- Serial
Port - A trait for serial port devices
Functions§
- open
- Opens a serial port depending on the local operating system.
- start
- Create the
ASHv2actor futures for the given serial port.
Type Aliases§
- Native
Serial Port - The native serial port on Unix.
- Payload
- A stack-allocated buffer that can hold payload for an
ASHv2DATAframe up to its maximum size.