??? 02/03/09 13:22 Read: times |
#161994 - Is there a way to use a pointer to access a bit Responding to: ???'s previous message |
No, there isn't.
Arindam Goswami said:
A bit pointer is illegal It's not just illegal; as Per said, the 8051 CPU has no such addressing mode - so it is impossible! but can a void pointer (or something else be used). No - see above. I dont want to go for an ugly switch case solution to write to each bit explicitly (where I can pass the bit no. to switch() You can use the standard bitwise operators; eg (1<<n)... |
Topic | Author | Date |
C51 compiler - Writing to a bit, using an index | 01/01/70 00:00 | |
Note that ^ also represents xor | 01/01/70 00:00 | |
Ouch!!! | 01/01/70 00:00 | |
Is there a way to use a pointer to access a bit | 01/01/70 00:00 | |
Just use plain C. | 01/01/70 00:00 | |
Just use plain C![]() | 01/01/70 00:00 |