Skip to content

radiens_core.models.ports

Port and GPIO domain models and enums.

CLASS DESCRIPTION
GPIOChannelCount

GPIO channel count information.

Port

Hardware port identifier.

PortChannelCount

Port channel count information.

ATTRIBUTE DESCRIPTION
FlexPort

Port that also accepts a single-letter string (case-insensitive) or int index.

Attributes

FlexPort module-attribute

FlexPort = Port | PortStr | int

Port that also accepts a single-letter string (case-insensitive) or int index.

Classes

GPIOChannelCount

Bases: BaseModel

GPIO channel count information.

ATTRIBUTE DESCRIPTION
n_aux

Number of analog input (AIN) channels.

TYPE: int

n_din

Number of digital input channels.

TYPE: int

n_dout

Number of digital output channels.

TYPE: int

Port

Bases: IntEnum

Hardware port identifier.

PortChannelCount

Bases: BaseModel

Port channel count information.

ATTRIBUTE DESCRIPTION
port

Hardware port identifier.

TYPE: Port

channel_count

Number of channels on the port.

TYPE: int