This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Syntax? "sbit * ptr2sbit;"

Is it possible using the C16x tools to create a variable that's a pointer
to an sbit? I'm trying to find a way to allow a function in a custom
library to not need to know where an I/O pin is until the user of the
library informs it via a library initialization function call.

For example, if there was a blink LED function, where that LED was on a
different I/O port pin on different pcbs, the user of the library could
inform the library function where the I/O pin was, by passing it the
address of the sfr bit. It seems to me that in order to be able to make
this work, I need to be able to create a "pointer to sbit" type of variable
in my library.

Help,
Dave.

0