BBBCSIO

The SerialPortOpenModeEnum Enum

 

The SerialPortOpenModeEnum Enum

The SerialPortOpenModeEnum enum defines possible read modes of a serial port on the Beaglebone Black.

Blocking refers to to the way the serial port code deals with a request to read more data than is present in the input queue. If the port is in block mode and more data is requested than is present, then the call will wait until the required amount of data arrives. In OPEN_NONBLOCK mode the port will just return what it has.

 

Source Code

The source code for this class is available online for download and also in browseable form.

 

Syntax

    public enum SerialPortOpenModeEnum
    {
        OPEN_BLOCK,       // reads block (wait) 
        OPEN_NONBLOCK     // reads do not block
    }