SimTypes.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /*
  2. This software is subject to the license described in the License.txt file
  3. included with this software distribution. You may not use this file except in compliance
  4. with this license.
  5. Copyright (c) Dynastream Innovations Inc. 2012
  6. All rights reserved.
  7. */
  8. #ifndef SIM_TYPES
  9. #define SIM_TYPES
  10. #include "config.h"
  11. // Simulator specific classes
  12. #ifdef SIM_AJE
  13. #define SIM_TX
  14. #include "HRMSensor.h"
  15. #include "SDMSensor.h"
  16. #include "BikePowerSensor.h"
  17. #include "BikeSpdCadSensor.h"
  18. #include "BikeCadenceSensor.h"
  19. #include "BikeSpeedSensor.h"
  20. #include "WeightScaleSensor.h"
  21. #include "MSMSensor.h"
  22. #include "LEVSensor.h"
  23. #include "GeocacheSensor.h"
  24. #include "TemperatureSensor.h"
  25. #include "RacquetSensor.h"
  26. #endif
  27. #ifdef SIM_AJR
  28. #define SIM_RX
  29. #include "HRMDisplay.h"
  30. #include "SDMDisplay.h"
  31. #include "BikePowerDisplay.h"
  32. #include "BikeSpdCadDisplay.h"
  33. #include "BikeCadenceDisplay.h"
  34. #include "BikeSpeedDisplay.h"
  35. #include "WeightScaleDisplay.h"
  36. #include "MSMDisplay.h"
  37. #include "LEVDisplay.h"
  38. #include "GeocacheDisplay.h"
  39. #include "TemperatureDisplay.h"
  40. #include "RacquetDisplay.h"
  41. #endif
  42. // Defines list of available simulators
  43. #define INC_HRM
  44. #define INC_SDM
  45. #define INC_BIKE_POWER
  46. #define INC_BIKE_CADENCE
  47. #define INC_BIKE_SPEED
  48. #define INC_BIKE_SPEED_CADENCE
  49. #define INC_WEIGHT_SCALE
  50. #define INC_MSM
  51. #define INC_LEV
  52. #define INC_GEOCACHE
  53. #define INC_TEMPERATURE
  54. #define INC_RACQUET
  55. // List of available simulator types
  56. enum simTypes{
  57. HEART_RATE_MONITOR,
  58. SPEED_DISTANCE_MONITOR,
  59. BIKE_POWER,
  60. BIKE_SPDCAD,
  61. BIKE_CADENCE,
  62. BIKE_SPEED,
  63. WEIGHT_SCALE,
  64. MULTISPORT_SPEED_DISTANCE,
  65. LIGHT_ELECTRIC_VEHICLE,
  66. GEOCACHE,
  67. TEMPERATURE,
  68. RACQUET,
  69. UNSELECTED //Leave 'unselected' last so the index numbers of the combo box match
  70. };
  71. #define SIM_BASE_MASK ((UCHAR) 0x03)
  72. #define SIM_SENSOR ((UCHAR) 0x01)
  73. #define SIM_DISPLAY ((UCHAR) 0x02)
  74. // List of simulators to display in combo box
  75. // Must be listed in the same order as the simTypes enum
  76. #define SUPPORTED_DISPLAYS {L"Heart Rate (HRM) Display", L"Speed and Distance (SDM) Display", L"Bike Power Display", L"Bike Speed and Cadence Display", L"Bike Cadence Display", L"Bike Speed Display", L"Weight Display", L"Multi-Sport Speed and Distance (MSM) Display", L"Light Electric Vehicle (LEV) Display", L"Geocache Dispay", L"Temperature Display", L"Racquet Display"}
  77. #define SUPPORTED_SENSORS {L"Heart Rate Monitor (HRM)", L"Speed and Distance Monitor (SDM)", L"Bike Power Sensor", L"Bike Speed and Cadence Sensor", L"Bike Cadence Sensor", L"Bike Speed Sensor", L"Weight Scale", L"Multi-Sport Speed and Distance (MSM) Sensor", L"Light Electric Vehicle (LEV) Sensor", L"Geocache Sensor", L"Temperature Sensor", L"Racquet Sensor"}
  78. #endif // !SIM_TYPES