hi
how to use structure pointer in msp430 based microcontroller
example
struct time
{ char hour;
char min;
char sec;
};
sturct time t_base;
how to call the function parameter ?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
hi
how to use structure pointer in msp430 based microcontroller
example
struct time
{ char hour;
char min;
char sec;
};
sturct time t_base;
how to call the function parameter ?
I'm sorry, but I don't understand your question. Perhaps this will help.
Thanks and regards,
-George
It does sound like a basic C language question, not specific to the MSP430, so maybe the C FAQ (as George suggested) will help.
If the question is, 'How do I pass a pointer to the structured data object named "t_base" as an argument to some function?" then:
extern void whatever_func( struct time * ); // requires a pointer to that type of structure
whatever_func( &t_base );