Interface Device

A generic serial device that can be addressed for either direct I/O or through a register description.

Interface summary


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.

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.