Skip to main content

Crate airfrog_bin

Crate airfrog_bin 

Source
Expand description

Airfrog is the tiny wireless co-processor for ARM.

https://piers.rocks/u/airfrog

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§

MultiReg

Enums§

Command
Binary API single byte command codes
LineLevel
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.
ParseError
Type used to represent errors that can occur in parsing received commands over the binary API.
ProtocolError
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.
ResponseCode
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§

AsyncReader
Async reader trait for reading data from a stream
SyncWriter
Sync writer trait for writing data to a stream