Crate capsules [] [src]

Reexports

extern crate core as core;
extern crate kernel;
use core::prelude::v1::*;

Modules

adc

Provides userspace applications with the ability to sample analog signals.

aes_ccm
alarm

Provides userspace applications with a alarm API.

ambient_light

You need a device that provides the hil::sensors::AmbientLight trait.

app_flash_driver

This allows multiple apps to write their own flash region.

button

Provides userspace control of buttons on a board.

console

Provides userspace with access to a serial interface.

crc

Provides userspace access to a CRC unit.

dac

Provides a DAC interface for userspace.

fm25cl

Driver for the FM25CL FRAM chip.

fxos8700cq

Driver for the FXOS8700CQ accelerometer.

gpio

Provides userspace applications with access to GPIO pins.

gpio_async

Provides userspace applications with a driver interface to asynchronous GPIO pins.

humidity

Provides userspace with access to humidity sensors.

i2c_master_slave_driver

Provides both an I2C Master and I2C Slave interface to userspace.

ieee802154
isl29035

Driver for the ISL29035 digital light sensor.

led

Provides userspace access to LEDs on a board.

lps25hb

Driver for the ST LPS25HB pressure sensor.

ltc294x

Driver for the LTC294X line of coulomb counters.

max17205

Driver for the Maxim MAX17205 fuel gauge.

mcp23008

Driver for the Microchip MCP23008 I2C GPIO extender.

net

Modules for IPv6 over 6LoWPAN stack

ninedof

Provides userspace with virtualized access to 9DOF sensors.

nonvolatile_storage_driver

This provides kernel and userspace access to nonvolatile memory.

nonvolatile_to_pages

Map arbitrary nonvolatile reads and writes to page operations.

nrf51822_serialization

Provides userspace with the UART API that the nRF51822 serialization library requires.

pca9544a

Driver for the PCA9544A I2C Selector.

rf233

Driver for sending 802.15.4 packets with an Atmel RF233.

rf233_const

Support for the RF233 capsule.

rng

Provides a simple driver for userspace applications to request randomness.

sdcard

Provides driver for accessing an SD Card and a userspace Driver.

si7021

Driver for the Silicon Labs SI7021 temperature/humidity sensor.

spi

Provides userspace applications with the ability to communicate over the SPI bus.

temperature

Provides userspace with access to temperature sensors.

test
tmp006

Driver for the TI TMP006 infrared thermopile contactless temperature sensor.

tsl2561

Driver for the Taos TSL2561 light sensor.

usb

Platform-independent USB 2.0 protocol library

usb_user

USB system call interface

usbc_client

A bare-bones client of the USB hardware interface

virtual_alarm

Virtualize the Alarm interface to enable multiple users of an underlying alarm hardware peripheral.

virtual_flash

Virtualize writing flash.

virtual_i2c

Virtualize an I2C master bus.

virtual_spi

Virtualize a SPI master bus to enable multiple users of the SPI bus.

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. With this, it can be simpler to programmatically chain multiple headers together when the outputs do not have to be collated.

enc_try

Extracts the result of encoding/decoding (the new offset and the output) only if no errors were encountered in encoding. This macro makes it possible to handle offsets easily for the following use cases:

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, throwing a stream error if it is None

stream_len_cond

Returns a buffer length error if there are not enough bytes