Expand description
Airfrog is the tiny wireless co-processor for ARM.
airfrog-bin - Airfrog’s binary API shared server/client constants and types
See Binary API
for the binary API specification.
This crate is no_std and platform agnostic.
This crate is used by the default airfrog firmware to implement the binary API server.
It is used by probe-rs to
implement a client for airfrog’s binary API.
Structs§
Enums§
- Command
- Binary API single byte command codes
- Line
Level - Used to represent the SWDIO line state on clock operations.
- Op
- Represents a binary API operation that can be performed over the Airfrog SWD interface. See the Binary API documentation for details.
- Parse
Error - Type used to represent errors that can occur in parsing received commands over the binary API.
- Protocol
Error - Type used to represent errors that can occur in sending or receiving commands over the binary API.
- RegType
- Represents the type of register being accessed in a command.
- Response
Code - Binary API single byte response codes
- Speed
- Airfrog speed
Constants§
- CMD_
AP_ BULK_ READ - CMD_
AP_ BULK_ WRITE - CMD_
AP_ READ - CMD_
AP_ WRITE - CMD_
CLOCK - CMD_
DISCONNECT - CMD_
DP_ READ - Binary API command types
- CMD_
DP_ WRITE - CMD_
MULTI_ REG_ WRITE - CMD_
PING - CMD_
RESET_ TARGET - CMD_
SET_ SPEED - MAX_
WORD_ COUNT - Maximum number of words supported on a bulk data request
- PORT
- Port used to serve binary API requests. Chosen as AF is 0x4146 in hex.
- RSP_
ERR_ API - RSP_
ERR_ CMD - RSP_
ERR_ NET - RSP_
ERR_ SWD - RSP_
ERR_ TIMEOUT - RSP_OK
- Binary API response codes
- VERSION
Traits§
- Async
Reader - Async reader trait for reading data from a stream
- Sync
Writer - Sync writer trait for writing data to a stream