Jamie Satchell
/
JSatchell_SOFT253ReferredCoursework
Finished project.
Fork of ReferredCoursework2016 by
Diff: Components/Interfaces/GenericSensor.h
- Revision:
- 48:cb18488509a5
- Parent:
- 46:badcff0675e8
- Child:
- 50:f507d4465c31
diff -r badcff0675e8 -r cb18488509a5 Components/Interfaces/GenericSensor.h --- a/Components/Interfaces/GenericSensor.h Mon Jun 08 17:22:35 2015 +0200 +++ b/Components/Interfaces/GenericSensor.h Mon Jun 08 17:37:59 2015 +0200 @@ -57,26 +57,28 @@ virtual int Init(void *ptr) = 0; /** - * @brief Enter sensor shutdown mode - * @return 0 in case of success, an error code otherwise - */ - virtual int PowerOff(void) = 0; - - /** * @brief Get ID of sensor * @param[out] id Pointer to where to store the ID to * @return 0 in case of success, an error code otherwise */ virtual int ReadID(uint8_t *id) = 0; + /*** betzw - TODO / NOTE: beyond code is still WIP and not confirmed yet!!! ***/ + /** + * @brief Enter sensor shutdown mode + * @return 0 in case of success, an error code otherwise + * @note not confirmed yet (WIP) + */ + virtual int PowerOff(void) = 0; + /** * @brief Reset sensor * @return 0 in case of success, an error code otherwise + * @note not confirmed yet (WIP) */ virtual int Reset(void) = 0; /* Interrupt Interface */ - /* betzw - TODO: WIP */ virtual void ConfigIT(uint16_t) = 0; virtual void EnableIT(uint8_t) = 0; virtual void DisableIT(uint8_t) = 0; @@ -86,6 +88,7 @@ /** * @brief Attach a function to be called when an interrupt occurs * @param[in] fptr A pointer to a void function, or 0 to set as none + * @note not confirmed yet (WIP) */ virtual void AttachIT(void (*fptr)(void)) = 0; };