SHARE
TWEET

Untitled

a guest Feb 19th, 2019 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. struct myCond{
  2.     unsigned char currStatus;
  3.     unsigned char prevStatus;
  4.     unsigned int *timer;
  5.     unsigned char *flag;
  6.    }
  7.   struct myCond StatCond;
  8.  
  9.   unsigned int data timerdata;
  10.   bit bdata timeflag;
  11.  
  12.   void someSubroutine (void)
  13.   {
  14.     struct myCond *tempCond;
  15.  
  16. tempCond = &StatCond;
  17. tempCond->timer = &((unsigned int)timerdata);
  18. tempCond->flag = &((unsigned char)timeflag);
  19.   }
  20.    
  21. tempCond->timer = &((unsigned int)timerdata);
  22. tempCond->flag = &((unsigned char)timeflag);
  23.    
  24. tempCond->timer = &timerdata;
  25. tempCond->flag = (unsigned char*)&timeflag;
  26.    
  27. struct myCond{
  28. ...
  29.     bit bdata *flag; // or maybe without bdata
  30.    }
  31.    
  32. unsigned int data timerdata;  // what is 'data', is it defined?
  33. bit bdata timerflag;  // what are 'bit' and 'bdata', are they defined?
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top