Files
Odin/core
Tetralux 37a2356485 [sys/windows] Add DCB structure, SetCommState, GetCommState
These are the procedures for configuring a serial port.

You simply open the port with CreateFile (os.open), followed by a call to GetCommState,
setting the DCB as desired, followed by a SetCommState call.

The DCB structure uses C bitfields, so a configuration struct is provided along with a helper procedure to make it easier
to initialize in Odin code.
This makes it possible to initialize a DCB structure with one call to the helper:
```
dcb: DCB
windows.init_dcb_with_config(&dcb, {
	BaudRate = 115200,
	ByteSize = 8,
	Parity = .None,
	StopBits = .One,
})
```
(The parity and the stopbits are actually optional in this example, as their zero-values are None and One, respectively.)
2022-09-22 15:14:14 +00:00
..
2022-05-14 12:27:21 +01:00
2022-08-05 20:10:20 +08:00
2022-08-28 18:25:07 +02:00
2022-08-29 02:03:12 -07:00
2022-08-05 20:10:20 +08:00
2022-09-17 18:45:33 +01:00
2022-07-15 13:02:07 +02:00
2022-08-29 00:29:50 +02:00
2022-09-17 10:20:52 +01:00
2022-09-08 16:55:40 +01:00
2022-09-01 00:43:47 +02:00
2022-09-17 15:12:32 +01:00
2022-09-04 13:11:06 +02:00
2022-08-08 12:27:23 +01:00
2022-05-14 13:34:52 +02:00
2022-07-11 11:55:49 +01:00