|
HALFRED
0.4.0
|
IOSerialDevice descriptor type definition. An IOSerialDevice object is actually a pointer to this structure.
#include <hali_ioserial.h>
| struct IODeviceDesc IOSerialDeviceDesc::iodevice |
The IODeviceDesc structure describing the IODevice core functionality.
| HALRESULT(* IOSerialDeviceDesc::SetBaudrate)(IOSerialDevice serial, uint32_t baudrate) |
Sets baudrate of an IOSerialDevice This function is directly called by IOSERIAL_SetBaudrate
| serial | IOSerialDevice |
| baudrate | baudrate |
| uint32_t(* IOSerialDeviceDesc::GetBaudrate)(IOSerialDevice serial) |
Gets the baudrate currently set for the given IOSerialDevice This function is directly called by IOSERIAL_GetBaudrate
| serial | IOSerialDevice |
| IOSerialDevice IOSerialDeviceDesc::serial |
Sets the frame format for the given IOSerialDevice This function is directly called by IOSERIAL_SetFrameFormat
| serial | IOSerialDevice |
| data_bits | number of data bits in a frame (see IOSERIAL_NumberOfDataBits) |
| parity | parity bit mode (see IOSERIAL_Parity) |
| stop | number of stop bits (see IOSERIAL_NumberOfStopBits) |
Gets the frame format currently set for a given IOSerialDevice. This function is directly called by IOSERIAL_GetFrameFormat
| serial | IOSerialDevice |
| data_bits | pointer to a variable where number of data bits in a frame will be stored (see IOSERIAL_NumberOfDataBits) |
| parity | pointer to a variable where parity bit mode will be stored (see IOSERIAL_Parity) |
| stop | pointer to a variable where number of stop bits will be stored (see IOSERIAL_NumberOfStopBits) |
Sets handshaking mode for a given IOSerialDevice This function is directly called by IOSERIAL_SetHandshaking
| serial | IOSerialDevice |
| handshaking | handshaking mode (see IOSERIAL_Handshaking) |
| IOSERIAL_Handshaking(* IOSerialDeviceDesc::GetHandshaking)(IOSerialDevice serial) |
Gets handshaking mode currently set for a given IOSerialDevice This function is directly called by IOSERIAL_GetHandshaking
| serial | IOSerialDevice |
| HALRESULT(* IOSerialDeviceDesc::EnableRTS)(IOSerialDevice serial) |
Enables the RTS (request to send) signal in a given IOSerialDevice. This function is directly called by IOSERIAL_EnableRTS
| serial | IOSerialDevice |
| HALRESULT(* IOSerialDeviceDesc::DisableRTS)(IOSerialDevice serial) |
Disables the RTS (request to send) signal in a given IOSerialDevice. This function is directly called by IOSERIAL_DisableRTS
| serial | IOSerialDevice |
| HALRESULT(* IOSerialDeviceDesc::SetRTS)(IOSerialDevice serial, bool rts) |
Sets the RTS (request to send) signal in a given IOSerialDevice. This function is directly called by IOSERIAL_SetRTS
| serial | IOSerialDevice |
| rts | RTS signal value (true means RTS is active, false means the RTS is inactive) |
| bool(* IOSerialDeviceDesc::GetRTS)(IOSerialDevice serial) |
Gets the RTS (request to send) signal value in a given IOSerialDevice. This function is directly called by IOSERIAL_GetRTS
| serial | IOSerialDevice |
| HALRESULT(* IOSerialDeviceDesc::EnableCTS)(IOSerialDevice serial) |
Enables the CTS (clear to send) signal in a given IOSerialDevice. This function is directly called by IOSERIAL_EnableCTS
| serial | IOSerialDevice |
| HALRESULT(* IOSerialDeviceDesc::DisableCTS)(IOSerialDevice serial) |
Disables the CTS (clear to send) signal in a given IOSerialDevice. This function is directly called by IOSERIAL_DisableCTS
| serial | IOSerialDevice |
| HALRESULT(* IOSerialDeviceDesc::SetCTS)(IOSerialDevice serial, bool cts) |
Sets the CTS (clear to send) signal in a given IOSerialDevice. This function is directly called by IOSERIAL_SetCTS
| serial | IOSerialDevice |
| rts | CTS signal value (true means CTS is active, false means the CTS is inactive) |
| bool(* IOSerialDeviceDesc::GetCTS)(IOSerialDevice serial) |
Gets the CTS (clear to send) signal value in a given IOSerialDevice. This function is directly called by IOSERIAL_GetCTS
| serial | IOSerialDevice |
1.8.7