| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Bit-sized variables again |
Hello Roy!
Thanks for your reply to my message, and the advice you gave me. It may
be quite useful (I don't know - I haven't got foar enough to include it
in my program yet). I just thouht I'd mention also that I've found some
code that may be similar in operation, but a little more ordered. You
may recogise its purpose straight away - can you tell me if it's what I
want (please note that I'm mainly interested in this so I don't have to
waste a whole byte where a single bit could be used)? Here's the code
(it's from the header file of a serial comms driver):
typedef unsigned short word;
typedef struct _lcr {
word databits : 2; //
word stopbits : 1; //
word parity : 2; //
word stuckparity : 1; //
word breakenable : 1; //
word dlab : 1; //Numbers specify no. of bits?
} lcr;
Do you think this code is what I've been talking about (or something
like it)? Thanks (now and in advance) for your help.
Merry Christmas and a happy new year!
Anton Maurovic
--- Opus-CBCS 1.73a
* Origin: Tan80 line 1,S.A. 61-8-3261132 (v32b) (3:800/822.0)SEEN-BY: 50/99 54/54 620/243 623/630 624/50 711/401 409 410 430 510 807 808 SEEN-BY: 711/809 932 934 942 712/515 713/888 714/906 800/1 2 406 416 421 805 SEEN-BY: 800/809 810 812 814 822 841 843 845 846 @PATH: 800/822 1 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.