Skip to main content

Crate ashv2

Crate ashv2 

Source
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::start to drive the asynchronous ASHv2 actor.
Handle
User-facing handle for sending payloads to the ASHv2 actor.

Enums§

FlowControl
Flow control modes

Constants§

MAX_PAYLOAD_SIZE
Maximum payload size in bytes.

Traits§

BaudRate
Available baud rates that the NCP can operate on.
SerialPort
A trait for serial port devices

Functions§

open
Opens a serial port depending on the local operating system.
start
Create the ASHv2 actor futures for the given serial port.

Type Aliases§

NativeSerialPort
The native serial port on Unix.
Payload
A stack-allocated buffer that can hold payload for an ASHv2 DATA frame up to its maximum size.