ChibiOS/RT
2.5.1
IOBus Struct Reference

Detailed Description

I/O bus descriptor.

This structure describes a group of contiguous digital I/O lines that have to be handled as bus.

Note:
I/O operations on a bus do not affect I/O lines on the same port but not belonging to the bus.

Definition at line 126 of file pal.h.

#include <pal.h>

Data Fields

ioportid_t portid
 Port identifier.
ioportmask_t mask
 Bus mask aligned to port bit 0.
uint_fast8_t offset
 Offset, within the port, of the least significant bit of the bus.

Field Documentation

Port identifier.

Definition at line 130 of file pal.h.

Referenced by palReadBus(), palSetBusMode(), and palWriteBus().

Bus mask aligned to port bit 0.

Note:
The bus mask implicitly define the bus width. A logical AND is performed on the bus data.

Definition at line 136 of file pal.h.

Referenced by palReadBus(), palSetBusMode(), and palWriteBus().

uint_fast8_t IOBus::offset

Offset, within the port, of the least significant bit of the bus.

Definition at line 140 of file pal.h.

Referenced by palReadBus(), palSetBusMode(), and palWriteBus().