18#ifndef LAZULI_SERIAL_H
19#define LAZULI_SERIAL_H
62 __LZ_SERIAL_STOP_BITS_ENUM_BEGIN = -1,
82 __LZ_SERIAL_STOP_BITS_ENUM_END
97 __LZ_SERIAL_PARITY_BIT_ENUM_BEGIN = -1,
122 __LZ_SERIAL_PARITY_BIT_ENUM_END
137 __LZ_SERIAL_SIZE_ENUM_BEGIN = -1,
167 __LZ_SERIAL_SIZE_ENUM_END
182 __LZ_SERIAL_SPEED_ENUM_BEGIN = -1,
212 __LZ_SERIAL_SPEED_ENUM_END
Basic type definitions and useful macros.
#define _EXTERN_C_DECL_BEGIN
Open C++ header file declarations.
#define _EXTERN_C_DECL_END
Close C++ header file declarations.
#define POSITION(X)
Define a constant bit at position X, starting from index 0.
void Lz_Serial_GetConfiguration(Lz_SerialConfiguration *const serialConfiguration)
Retrieve the configuration of the serial line.
Lz_SerialSpeed
Define the baud rate of the serial line.
@ LZ_SERIAL_SPEED_4800
Use a 4800 baud rate on the serial line.
@ LZ_SERIAL_SPEED_2400
Use a 2400 baud rate on the serial line.
@ LZ_SERIAL_SPEED_19200
Use a 19200 baud rate on the serial line.
@ LZ_SERIAL_SPEED_9600
Use a 9600 baud rate on the serial line.
Lz_SerialParityBit
Define the kind of parity bit to use on serial line.
@ LZ_SERIAL_PARITY_EVEN
Use even parity bit.
@ LZ_SERIAL_PARITY_ODD
Use odd parity bit.
@ LZ_SERIAL_PARITY_NONE
Use no parity bit.
Lz_SerialSize
Define the size of the character used on serial line.
@ LZ_SERIAL_SIZE_6
Use 6-bit character size on serial line.
@ LZ_SERIAL_SIZE_7
Use 7-bit character size on serial line.
@ LZ_SERIAL_SIZE_5
Use 5-bit character size on serial line.
@ LZ_SERIAL_SIZE_8
Use 8-bit character size on serial line.
void Lz_Serial_SetConfiguration(Lz_SerialConfiguration *const serialConfiguration)
Set the configuration of the serial line.
Lz_SerialEnableFlags
Define flags for enabling/disabling serial transmission/reception.
@ LZ_SERIAL_ENABLE_ALL
Enable both serial transmission and reception.
@ LZ_SERIAL_ENABLE_RECEIVE
Enable serial reception.
@ LZ_SERIAL_DISABLE_ALL
Disable both serial transmission and reception.
@ LZ_SERIAL_ENABLE_TRANSMIT
Enable serial transmission.
Lz_SerialStopBits
Define the number of stop bits to use on serial line.
@ LZ_SERIAL_STOP_BITS_1
Use 1 stop bit.
@ LZ_SERIAL_STOP_BITS_2
Use 2 stop bits.
Represents the configuration of a serial interface.
enum Lz_SerialParityBit parityBit
The kind of parity bit.
enum Lz_SerialStopBits stopBits
The number of stop bits.
enum Lz_SerialEnableFlags enableFlags
The enable/disable Tx/Rx options.
enum Lz_SerialSize size
The size of the character.
enum Lz_SerialSpeed speed
The baud rate.