הגדרות בקבצי Header

BMWE

New member
הגדרות בקבצי Header

צוהריים טובים! יש לי בקובץ ה header את ההגדרה הבאה:
short Com1Con0:0x305008;​
מה זה אומר (לא נפגשתי עם סינטקס זה עד כה)
 

selalerer

New member
זה נמצא בתוך struct או union?

יש איזה ifndef# שמגדיר שהשורה הזאת תהיה רק בארכיטקטורה מסויימת או משהו כזה?
 

BMWE

New member
יש את הקובץ עם המבנה הבא:

#ifndef GLOBALS_H #define GLOBALS_H /*********************************** * Set point vector is representing * * the wanted state of the car * ***********************************/ typedef struct _SETPOINTvector { unsigned char switches; // main,fuel valve,starter switchs unsigned short RPMposition; // ADC actuator setpoint unsigned short WHEELposition ; // ADC actuator setpoint unsigned short HeadDir ; // ADC actuator } tSETPOINTvector; extern tSETPOINTvector SETPOINTvector; short Com1Con0:0x305008; // SCI1 control register 0 void ClearWatchdog(); #endif​
 
למעלה