OK - parity tested.
Two things:
- parity Space works, Mark doesn't - it's opened as space as well.
- for enabling mark and space you currently have to set not only the io_ExtFlags but also io_SerFlags |= SERF_PARTY_ON.
According to "serial.doc" from the NDKs (1.3 to 3.5) this shouldn't be necessary:
serial.device/SDCMD_SETPARAMS:
7. If you select mark or space parity (see io_ExtFlags in serial.h),
this will cause the SERB_PARTY_ON bit to be set, and the setting
of SERB_PARTY_ODD to be ignored.
Can't test this on real hardware though.
EDIT: io_Length = -1 tested
ok - transmission stops at first occurance of 0x00 :-)
Last edited by amiga_amigo; 03 March 2021 at 21:41.
|