Crate capsules_core

Source

Modules§

adc
Syscall driver capsules for ADC sampling.
alarm
Tock syscall driver capsule for Alarms, which issue callbacks when a point in time has been reached.
button
Provides userspace control of buttons on a board.
console
Provides userspace with access to a serial interface.
console_ordered
Provides userspace with access to a serial interface whose output is in-order with respect to kernel debug!() operations.
driver
Mapping of capsules to their syscall driver number.
gpio
Provides userspace applications with access to GPIO pins.
i2c_master
SyscallDriver for an I2C Master interface.
i2c_master_slave_combo
Combines two hardware devices into a single I2C master/slave device.
i2c_master_slave_driver
Provides both an I2C Master and I2C Slave interface to userspace.
led
Provides userspace access to LEDs on a board.
low_level_debug
Provides low-level debugging functionality to userspace. The system call interface is documented in doc/syscalls/00008_low_level_debug.md.
process_console
Implements a text console over the UART that allows a terminal to inspect and control userspace processes.
rng
Library of randomness structures.
spi_controller
Provides userspace applications with the ability to communicate over the SPI bus.
spi_peripheral
Provides userspace applications with the ability to communicate over the SPI bus as a peripheral. Only supports chip select 0.
stream
test
virtualizers

Macros§

dec_consume
The decoding equivalent of enc_consume
dec_try
The decoding equivalent of enc_try. The only difference is that only an immutable borrow of the buffer is required each time.
enc_consume
This is the aforementioned version of the unwrapping macro that only returns the offset.
enc_try
Extracts the result of encoding/decoding (the new offset and the output) only if no errors were encountered in encoding.
stream_cond
Returns an error if a condition is unmet
stream_done
Returns the result of encoding/decoding
stream_err
Returns an error
stream_from_option
Gets the result of an Option<T>, throwing a stream error if it is None
stream_len_cond
Returns a buffer length error if there are not enough bytes