GM6000 Digital Heater Controller Branch: main
SDX-1330
Macros
Constants.h File Reference

Detailed Description

This file contains magic values that are specific to the Ajax application (but not to any one single component)

#include "colony_config.h"
Include dependency graph for Constants.h:

Go to the source code of this file.

Macros

#define AJAX_ALERT_PRIORITY_POST_FAILED   10
 Alert priority: POST Alert (lower number == higher priority)
 
#define AJAX_ALERT_PRIORITY_NOT_PROVISIONED   20
 Alert priority: Not provisioned Alert (lower number == higher priority)
 
#define AJAX_ALERT_PRIORITY_SENSOR_FAILED   30
 Alert priority: No (onboard) Sensor Available Alert (lower number == higher priority)
 
#define AJAX_ALERT_PRIORITY_HI_TEMP   40
 Alert priority: Hi-Temp Alert (lower number == higher priority)
 
#define AJAX_ALERT_PRIORITY_REMOTE_SENSOR_FAILED   50
 Alert priority: No Sensor Available Alert (lower number == higher priority)
 
#define OPTION_AJAX_MAX_HEATING_SETPOINT_F   (85*100)
 Maximum heating setpoint in hundreds of degrees Fahrenheit.
 
#define OPTION_AJAX_MIN_HEATING_SETPOINT_F   (55*100)
 Minimum heating setpoint in hundreds of degrees Fahrenheit.
 
#define OPTION_AJAX_MAX_INDOOR_TEMPERATURE_F   (100*100)
 Maximum supported indoor temperature value in hundreds of degrees Fahrenheit (outside of the range is considered an error)
 
#define OPTION_AJAX_MIN_INDOOR_TEMPERATURE_F   (40*100)
 Minimum supported indoor temperature value in hundreds of degrees Fahrenheit (outside of the range is considered an error)
 
#define OPTION_AJAX_MAX_VERSION_LENGTH   16
 Maximum size, in bytes, a version string can be.
 
#define OPTION_AJAX_MAX_MODEL_LENGTH   16
 Maximum size, in bytes, a model string can be.
 
#define OPTION_AJAX_MAX_SERIAL_NUM_LENGTH   16
 Maximum size, in bytes, a serial number string can be.
 
#define OPTION_AJAX_HASHED_PASSWORD_SIZE   64
 Size, in bytes, of the Hashed password.
 
#define OPTION_AJAX_HASHED_PASSWORD_SALT_SIZE   16
 Size, in bytes, of the salt used when hashing the password.
 
#define OPTION_AJAX_HASHED_PASSWORD_ITERATIONS   2000
 Number of iteration to use when hashing a password.
 
#define OPTION_AJAX_PASSWORD_MAX_LENGTH   32
 Maximum,size in bytes, of a password.
 
#define OPTION_AJAX_PASSWORD_MIN_LENGTH   12
 Minimum,size in bytes, of a password.
 
#define OPTION_AJAX_MAX_PWM_VALUE_HEATER   0xFFFF
 Value that maps to 100% PWM Duty Cycle for the Heater output signal.
 
#define OPTION_AJAX_MAX_PWM_VALUE_FAN   0xFFFF
 Value that maps to 100% PWM Duty Cycle for the Fan output signal.
 

Macro Definition Documentation

◆ AJAX_ALERT_PRIORITY_HI_TEMP

#define AJAX_ALERT_PRIORITY_HI_TEMP   40

Alert priority: Hi-Temp Alert (lower number == higher priority)

◆ AJAX_ALERT_PRIORITY_NOT_PROVISIONED

#define AJAX_ALERT_PRIORITY_NOT_PROVISIONED   20

Alert priority: Not provisioned Alert (lower number == higher priority)

◆ AJAX_ALERT_PRIORITY_POST_FAILED

#define AJAX_ALERT_PRIORITY_POST_FAILED   10

Alert priority: POST Alert (lower number == higher priority)

◆ AJAX_ALERT_PRIORITY_REMOTE_SENSOR_FAILED

#define AJAX_ALERT_PRIORITY_REMOTE_SENSOR_FAILED   50

Alert priority: No Sensor Available Alert (lower number == higher priority)

◆ AJAX_ALERT_PRIORITY_SENSOR_FAILED

#define AJAX_ALERT_PRIORITY_SENSOR_FAILED   30

Alert priority: No (onboard) Sensor Available Alert (lower number == higher priority)

◆ OPTION_AJAX_HASHED_PASSWORD_ITERATIONS

#define OPTION_AJAX_HASHED_PASSWORD_ITERATIONS   2000

Number of iteration to use when hashing a password.

◆ OPTION_AJAX_HASHED_PASSWORD_SALT_SIZE

#define OPTION_AJAX_HASHED_PASSWORD_SALT_SIZE   16

Size, in bytes, of the salt used when hashing the password.

◆ OPTION_AJAX_HASHED_PASSWORD_SIZE

#define OPTION_AJAX_HASHED_PASSWORD_SIZE   64

Size, in bytes, of the Hashed password.

◆ OPTION_AJAX_MAX_HEATING_SETPOINT_F

#define OPTION_AJAX_MAX_HEATING_SETPOINT_F   (85*100)

Maximum heating setpoint in hundreds of degrees Fahrenheit.

◆ OPTION_AJAX_MAX_INDOOR_TEMPERATURE_F

#define OPTION_AJAX_MAX_INDOOR_TEMPERATURE_F   (100*100)

Maximum supported indoor temperature value in hundreds of degrees Fahrenheit (outside of the range is considered an error)

◆ OPTION_AJAX_MAX_MODEL_LENGTH

#define OPTION_AJAX_MAX_MODEL_LENGTH   16

Maximum size, in bytes, a model string can be.

Does NOT include the null terminator

◆ OPTION_AJAX_MAX_PWM_VALUE_FAN

#define OPTION_AJAX_MAX_PWM_VALUE_FAN   0xFFFF

Value that maps to 100% PWM Duty Cycle for the Fan output signal.

◆ OPTION_AJAX_MAX_PWM_VALUE_HEATER

#define OPTION_AJAX_MAX_PWM_VALUE_HEATER   0xFFFF

Value that maps to 100% PWM Duty Cycle for the Heater output signal.

◆ OPTION_AJAX_MAX_SERIAL_NUM_LENGTH

#define OPTION_AJAX_MAX_SERIAL_NUM_LENGTH   16

Maximum size, in bytes, a serial number string can be.

Does NOT include the null terminator

◆ OPTION_AJAX_MAX_VERSION_LENGTH

#define OPTION_AJAX_MAX_VERSION_LENGTH   16

Maximum size, in bytes, a version string can be.

Does NOT include the null terminator

◆ OPTION_AJAX_MIN_HEATING_SETPOINT_F

#define OPTION_AJAX_MIN_HEATING_SETPOINT_F   (55*100)

Minimum heating setpoint in hundreds of degrees Fahrenheit.

◆ OPTION_AJAX_MIN_INDOOR_TEMPERATURE_F

#define OPTION_AJAX_MIN_INDOOR_TEMPERATURE_F   (40*100)

Minimum supported indoor temperature value in hundreds of degrees Fahrenheit (outside of the range is considered an error)

◆ OPTION_AJAX_PASSWORD_MAX_LENGTH

#define OPTION_AJAX_PASSWORD_MAX_LENGTH   32

Maximum,size in bytes, of a password.

◆ OPTION_AJAX_PASSWORD_MIN_LENGTH

#define OPTION_AJAX_PASSWORD_MIN_LENGTH   12

Minimum,size in bytes, of a password.