Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Activity for patriko8520
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Comment | Post #291199 |
void hwinterface_run(hwinterface* hwi)
{
if(hwi->hw == HW_DIGITAL)
{
int stuff1 = type1_get_stuff(hwi->t1);
type1_set_stuff(hwi->t1, stuff1);
type1_run(hwi->t1);
}
else if (hwi->hw == HW_ANALOG)
{
... (more) |
— | 8 months ago |
Comment | Post #291199 |
Thank you for all your tips and your commitment to help. I’m sure I will use your advice. I read these topics which you recommended.
I rewrote Your code to my compiler to understand it better from scratch. I understood the design and also that what I tried to do wasn’t well constructed.
But I’m wo... (more) |
— | 8 months ago |
Edit | Post #291195 | Initial revision | — | 8 months ago |
Question | — |
Pattern / architecture for interfacing with components in C I'm working on the architecture, where the assumption is to easily extend the options in the system and also to provide some kind of encapsulation (from the main we could only access the type1 / type2 through interface). It will be an embedded software system, where there will be e.g. the same end ... (more) |
— | 8 months ago |