# Packages
package usb contains the subpackages with USB descriptors and device implementations for standard USB device classes such as the Communcation Data Class (CDC), Human Interface Device (HID), and Audio Device Class (ADC).
# Functions
GetRNG returns 32 bits of random data from the WASI random source.
InitADC enables support for ADC peripherals.
NewRingBuffer returns a new ring buffer.
# Constants
Device is the running program's chip name, such as "ATSAMD51J19A" or "nrf52840".
Generic constants.
I2CFinish indicates the controller has ended the transaction.
I2CModeController represents an I2C peripheral in controller mode.
I2CModeTarget represents an I2C peripheral in target mode.
I2CReceive indicates target has received a message from the controller.
I2CRequest indicates the controller is expecting a message from the target.
Generic constants.
Generic constants.
SPI phase and polarity configs CPOL and CPHA.
SPI phase and polarity configs CPOL and CPHA.
SPI phase and polarity configs CPOL and CPHA.
SPI phase and polarity configs CPOL and CPHA.
NoPin explicitly indicates "not a pin".
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TWI_FREQ is the I2C bus speed.
TWI_FREQ is the I2C bus speed.
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
The Serial port always points to the default UART in a simulated environment.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
ADCConfig holds ADC configuration parameters.
I2C is a generic implementation of the Inter-IC communication protocol.
I2CConfig is used to store config info for I2C.
NullSerial is a serial version of /dev/null (or null router): it drops everything that is written to it.
No description provided by the author
No description provided by the author
PWMConfig allows setting some configuration while configuring a PWM peripheral.
RingBuffer is ring buffer implementation inspired by post at https://www.embeddedrelated.com/showthread/comp.arch.embedded/77084-1.php.
No description provided by the author
No description provided by the author
No description provided by the author
UARTConfig is a struct with which a UART (or similar object) can be configured.
# Type aliases
I2CMode determines if an I2C peripheral is in Controller or Target mode.
I2CTargetEvent reflects events on the I2C bus.
Pin is a single pin on a chip, which may be connected to other hardware devices.
PinMode sets the direction and pull mode of the pin.