Part Number: MSP430FR2355
I have multiple strings in an array in main from where I point to one of the strings and pass that to a function as a pointer (*p).....Within the function state machine (which manipulates hw) if something goes wrong I want to re-align this pointer back to the beginning of the string that was passed in......Can someone tell me how to do this....I'm sure it's fundamental but it alludes me...... The pointer itself after the function is done is aligned to the next value in the array.
Snippet of main
const char *configCmd[] = {r_groupID, r_PowerSet17, r_bandSet, r_USAFCC, r_Spread1, r_RSSIoff, r_setGrpID};
pTx = *configCmd;
pRadioResponse = radioReg(pTx);
Snippet of function
char* radioReg(const char *p)
Thanks