HTML Access (IR data structure)
The structure for the IR information:
typedef struct lepton_settings_struct
{
__packed uint16_t isotherm_min_enable;
__packed uint16_t isotherm_max_enable;
__packed uint16_t isotherm_min;
__packed uint16_t isotherm_max;
__packed uint16_t palette;
__packed uint16_t units;
__packed uint16_t led;
__packed uint16_t reserved1;
__packed char name[16];
__packed char serial[STRING_LENGTH];
__packed enum View_Mode view_mode;
__packed enum DateFormat date_format;
__packed enum TimeFormat time_format;
__packed enum Dhcp dhcp;
__packed uint32_t static_ip_addr;
__packed uint32_t static_netmask;
__packed uint32_t static_gateway;
__packed uint32_t crc;
} lepton_settings_type;
typedef struct
lepton_info_struct
{
__packed uint16_t bin_max;
__packed uint16_t bin_min;
__packed uint16_t max_x;
__packed uint16_t max_y;
__packed uint16_t min_x;
__packed uint16_t min_y;
__packed uint16_t palette_depth;
__packed int16_t ambient;
__packed uint16_t palette_lut[PALETTE_
LARGEST];
__packed uint16_t palette_temp[PALETTE_
LARGEST];
__packed lepton_settings_type settings;
__packed uint32_t firmware;
__packed uint32_t alarm_status;
__packed uint16_t token;
} lepton_info_type;
typedef struct
alarm_settings_struct
{
__packed uint16_t alarm[25];
__packed uint32_t alarm_enable;
__packed uint16_t token;
} alarm_settings_type;
enum
Palette { GREY_POSITIVE=0, GREY_
NEGATIVE, IRON, HOTMETAL, RAINBOW, AMBER,
SEPIA };
enum
View_Mode { ISOTHERM_OVERLAY,
THERMAL_ONLY, VISIBLE_ONLY, HIGHLIGHT,
MAX_VIEW_MODE };
enum
Units { CELSIUS, FARENHEIT, KELVIN,
MAX_UNITS };
enum
DateFormat { YYYYMMDD, DDMMYYYY,
MMDDYYYY, MAX_DATE_FORMAT };
enum
TimeFormat { HH24MMSS, HH12MMSS,
MAX_TIME_FORMAT};
enum
Dhcp { DHCP, STATIC_IP, MAX_DHCP};
enum
Led { LED_DISABLED, LED_ENABLED,
MAX_LED};
DateFormat and TimeFormat are not used.
palette_lut[PALETTE_LARGEST] is an array of
colors
Colours are RGB565, 16 bit colour.
palette_temp[PALETTE_LARGEST] is an array
of temperatures in cK
The temperatures of each palette colour.
RUGGED
AUTHORITY
MONITIR Series Thermal Imaging Cameras
– User Manual
31
Document Reference MONITIRSERIESUM Rev. A