Libraries
bignum
binary
bitmap
ble
bytes
core
crypto
device
encoding
esp32
expect
fixed-point
flash
font
gpio
i2c
i2s
icons
io
line-wrap
log
math
monitor
net
pulse-counter
reader
reader-writer
rmt
serial
device
registers
spi
statistics
system
tls
uart
uuid
writer
zlib
Interface Device
A generic serial device that can be addressed for either direct I/O or through a register description.
Interface summary
Constructors
Statics
Methods
Fields
registers
->
Registers
Register description of this device.
read
amount/
int
->
ByteArray
Reads the
amount
of bytes from the device.
write
bytes/
ByteArray
->
none
Writes the
bytes
to the device.
Methods
read
amount/
int
->
ByteArray
Reads the
amount
of bytes from the device.
If the device can't provide
amount
bytes, the behavior of this operation is undefined and depending on the actual device implementation.
registers
->
Registers
Register description of this device.
write
bytes/
ByteArray
->
none
Writes the
bytes
to the device.
If the device can't accept the
bytes
, the behavior of this operation is undefined and depending on the actual device implementation.