Self test boot program for testing icarus sensors
Dependencies: BLE_API mbed nRF51822
Fork of BLE_UARTConsole by
Diff: BaseSensor.h
- Revision:
- 9:ed3636e1873f
- Parent:
- 8:e9ae7a01d866
- Child:
- 10:3a24c970db40
--- a/BaseSensor.h Tue Jan 27 09:29:17 2015 +0000 +++ b/BaseSensor.h Tue Jan 27 12:30:51 2015 +0000 @@ -14,6 +14,11 @@ #define SENSORS_DPS_TO_RADS (0.017453293F) /**< Degrees/s to rad/s multiplier */ #define SENSORS_GAUSS_TO_MICROTESLA (100) /**< Gauss to micro-Tesla multiplier */ +/* Errors */ +#define ERROR_WRONG_DEVICE_ID 1 +#define ERROR_SEU_ERROR_DETECT 2 +#define ERROR_DEVICE_SLEEPING 3 +#define ERROR_SELF_TEST_FAILED 4 /** Sensor types */ typedef enum { @@ -56,7 +61,7 @@ virtual char* getSimpleName() = 0; virtual void getSensorDetails(sensor_t*) = 0; //verify basic integrity of underlining hardware - virtual int verifyIntegrity(int*) = 0; + virtual uint32_t verifyIntegrity(uint32_t*) = 0; private: };