We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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.