7
APPENDIX
TMPM5200-2
7-27
Internal data structure
Data structures in Image Header
•
Year, month, and day: dosdate_t
Data Type
Data Size
Note
unsigned char
1 byte
Day
(
1 to 31
)
unsigned char
1 byte
Month
(
1 to 12
)
unsigned short
2 bytes
Year
(
1980 to 2099
)
unsigned char
1 byte
Day of the week
(
0 to 6 : 0
→
Sunday
)
•
Time: dostime_t
Type
Size
Note
unsigned char
1 byte
Hour
(
0 to 23
)
unsigned char
1 byte
Minute
(
0 to 59
)
unsigned char
1 byte
Second
(
0 to 59
)
unsigned char
1 byte
1/100 s
(
0 to 99
)
•
Structure to record the region selected from the image: union ExtraType
Type
Size
Note
struct ImageExtraType
8 bytes Image
selection
range
struct CITSImageExtraType
7 bytes
CITS measurement parameters
•
Structure to record the range selected from the image: ImageExtraType
Type
Size
Note
short 2
bytes
X1
short 2
bytes
X2
short 2
bytes
Y1
short 2
bytes
Y2
•
Structure to record CITS measurement parameters: CITS ImageExtraType
Type
Size
Note
unsigned char
1 byte
ADC source
short
2 bytes
ADC offset [mV]
unsigned short
2 bytes
ADC gain
unsigned short
2 bytes
Head amp gain