Module interface:serport - Serial port infrastructure

Serial port infrastructure. This is used within the system to manage serial-ports. Low-level drivers can dynamically register ports with the 'serial' infrastructure (see driver:serial).

Index

Declarations

serport.inc:29Group SERPORT.FLAG

Serial port flags.

serport.inc:30Constant SERPORT.FLAG.NONE

VAL INT SERPORT.FLAG.NONE

No particular features.

serport.inc:31Constant SERPORT.FLAG.HWFLOW

VAL INT SERPORT.FLAG.HWFLOW

Port can do hardware flow-control.

serport.inc:32Constant SERPORT.FLAG.SWFLOW

VAL INT SERPORT.FLAG.SWFLOW

Port can do software flow-control.

serport.inc:33Constant SERPORT.FLAG.INPUT

VAL INT SERPORT.FLAG.INPUT

Input port.

serport.inc:34Constant SERPORT.FLAG.OUTPUT

VAL INT SERPORT.FLAG.OUTPUT

Output port.

serport.inc:37Group SERPORT.LINE

Serial port line settings (data/stop/parity).

serport.inc:38Constant SERPORT.LINE.DATA.MASK

VAL INT SERPORT.LINE.DATA.MASK

Number of data-bits mask.

serport.inc:39Constant SERPORT.LINE.DATA.SHIFT

VAL INT SERPORT.LINE.DATA.SHIFT

Data-bits shift.

serport.inc:40Constant SERPORT.LINE.STOP.MASK

VAL INT SERPORT.LINE.STOP.MASK

Number of stop-bits mask.

serport.inc:41Constant SERPORT.LINE.STOP.SHIFT

VAL INT SERPORT.LINE.STOP.SHIFT

Stop-bits shift.

serport.inc:42Constant SERPORT.LINE.PARITY.MASK

VAL INT SERPORT.LINE.PARITY.MASK

Parity mode mask.

serport.inc:43Constant SERPORT.LINE.PARITY.SHIFT

VAL INT SERPORT.LINE.PARITY.SHIFT

Parity mode shift.

serport.inc:44Constant SERPORT.LINE.PARITY.NONE

VAL INT SERPORT.LINE.PARITY.NONE

No parity.

serport.inc:45Constant SERPORT.LINE.PARITY.ODD

VAL INT SERPORT.LINE.PARITY.ODD

Odd parity.

serport.inc:46Constant SERPORT.LINE.PARITY.EVEN

VAL INT SERPORT.LINE.PARITY.EVEN

Even parity.

serport.inc:47Constant SERPORT.LINE.PARITY.MARK

VAL INT SERPORT.LINE.PARITY.MARK

Mark parity.

serport.inc:48Constant SERPORT.LINE.PARITY.SPACE

VAL INT SERPORT.LINE.PARITY.SPACE

Space parity.

serport.inc:53Record SERPORT

DATA TYPE SERPORT

Generic port descriptor.

serport.inc:55Variable portno

INT

Port number.

serport.inc:56Variable name

[64]BYTE

Port name.

serport.inc:57Variable name.len

INT

Name length.

serport.inc:58Variable flags

INT

Flags/features.

serport.inc:59Variable min.baud, max.baud

INT

Minimum and maximum baud rates.

serport.inc:60Variable line.settings

INT

Current line settings (see SERPORT.LINE).

serport.inc:64Protocol P.SERPORT.IN

PROTOCOL P.SERPORT.IN

Serial-port specific input protocol.

serport.inc:66Tag register.port

register.port; SERPORT; CT.DRIVER!

Registers a port, responds with registered or result on error.

serport.inc:67Tag unregister.port

unregister.port; SERPORT

Unregisters a port, responds with unregistered or result on error.

serport.inc:71Protocol P.SERPORT.OUT

PROTOCOL P.SERPORT.OUT

Serial-port specific output protocol.

serport.inc:73Tag registered

registered; SERPORT

Registered port successfully, updated information returned (including real port number).

serport.inc:74Tag unregistered

unregistered; CT.DRIVER!

Unregistered port successfully, responds with original driver link.

serport.inc:75Tag result

result; INT

Generic result/error.

serport.inc:79Channel type CT.SERPORT

CHAN TYPE CT.SERPORT

Serial-port specific channel-type.

serport.inc:81Variable in?

CHAN P.SERPORT.IN

Requests to serial infrastructure.

serport.inc:82Variable out!

CHAN P.SERPORT.OUT

Responses from serial infrastructure.