LSBfirst Constant

Top  Previous  Next

Gets the constant used to select transmission of the LSB first.

Syntax

Cell.SPI.LSBfirst

Value

The constant used to select transmission of the LSB first.

Remarks

Standard SPI always sends the most-significant bit (MSB) of each byte first. In order to provide compatibility with other types of serial interfaces, the SPI bus can be configured to send the least-significant bit (LSB) first.

 

This constant is a single bit that must be combined with values for other configuration parameters before assigning it to the config property.

Examples

// Set up for 3-wire interface

Cell.SPI.config = Cell.SPI.mode0 | Cell.SPI.LSBfirst | Cell.SPI.noSS;

See Also

config Property