Skip to main content

Module kind

Module kind 

Source
Expand description

Registry of VFS control command kind bytes (file_system::define_command!).

Each device class uses a distinct 1-byte kind identifier encoded into [file_system::ControlCommandIdentifier]. Existing kind bytes are part of the stable VFS control ABI and must not be changed.

Kind byteHexDevice classOwning module / crate
b'A'0x41Audiodevice::audio / audio
b'B'0x42Block devicefile_system::block_device
b'D'0x44Screen / displaydevice::screen / graphics
b'E'0x45Executableexecutable
b'F'0x46Firmware updatefirmware_update::device
b'H'0x48Hash acceleratordevice::hash
b'N'0x4ENeural networkdevice::neural_network / drivers_neural_network
b'P'0x50System powerdevice::power / drivers_peripherals::power
b'T'0x54Terminal / characterfile_system::character_device
b'L'0x4CBluetooth LEdevice::bluetooth / bluetooth
b'a'0x61ADCdevice::adc / drivers_peripherals::adc
b'g'0x67GPIOdevice::gpio / drivers_peripherals::gpio
b'h'0x68Human interface emulationdevice::human_interface / drivers_peripherals::human_interface
b'i'0x69I2Cdevice::i2c / drivers_peripherals::i2c
b'n'0x6ENetwork interfacenetwork
b'p'0x70PWMdevice::pwm / drivers_peripherals::pwm
b'r'0x72Real-time clockdevice::real_time_clock / drivers_peripherals::real_time_clock
b's'0x73SPIdevice::spi / drivers_peripherals::spi
b'u'0x75UARTdevice::uart / drivers_peripherals::uart
b'w'0x77Wi-Finetwork

Constantsยง

ADC
Analog-to-digital converter (b'a').
ALL
All registered VFS control command kind bytes.
AUDIO
Audio playback and stream control (b'A').
BLOCK_DEVICE
Generic block device geometry queries (b'B').
BLUETOOTH
Bluetooth Low Energy host.
EXECUTABLE
Native executable launch entry point query (b'E').
FIRMWARE_UPDATE
Firmware update transaction control (b'F').
GPIO
General-purpose input/output line (b'g').
HASH
Hardware or software cryptographic hash device (b'H').
HUMAN_INTERFACE
Human interface emulation device, acting as a keyboard, media remote and mouse toward the connected computer (b'h').
I2C
Inter-Integrated Circuit bus endpoint (b'i').
NETWORK
Network interface configuration and routing (b'n').
NEURAL_NETWORK
Neural network inference device (b'N').
POWER
System power actions: power off, restart, sleep (b'P').
PWM
Pulse-width modulation channel (b'p').
REAL_TIME_CLOCK
Real-time clock: wall-clock time (UTC) kept across resets and power-off (b'r').
SCREEN
Screen / display control and screenshot requests (b'D').
SPI
Serial Peripheral Interface endpoint (b's').
TERMINAL
Terminal capability query and line discipline attributes on character devices (b'T').
UART
Universal Asynchronous Receiver-Transmitter endpoint (b'u').
WIFI
Wi-Fi radio, scan, and client association control (b'w').