ChibiOS/HAL  6.1.0
IOBus Struct Reference

I/O bus descriptor. More...

#include <hal_pal.h>

Collaboration diagram for IOBus:
Collaboration graph

Data Fields

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

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 183 of file hal_pal.h.

Field Documentation

ioportid_t IOBus::portid

Port identifier.

Definition at line 187 of file hal_pal.h.

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

ioportmask_t IOBus::mask

Bus mask aligned to port bit 0.

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

Definition at line 193 of file hal_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 197 of file hal_pal.h.

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