diff options
author | roccomarco <roccomarco@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2016-03-05 11:07:52 +0000 |
---|---|---|
committer | roccomarco <roccomarco@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2016-03-05 11:07:52 +0000 |
commit | 00775f65fe2170a053feef385cc835661b28262b (patch) | |
tree | a991b284b46227a540d176e6a2d249e5c8498b6f | |
parent | ffed4a0266e0ca47c1af542602c2a45b29d0e0ad (diff) | |
download | ChibiOS-00775f65fe2170a053feef385cc835661b28262b.tar.gz ChibiOS-00775f65fe2170a053feef385cc835661b28262b.tar.bz2 ChibiOS-00775f65fe2170a053feef385cc835661b28262b.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9020 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r-- | os/hal/lib/peripherals/include/hal_gyroscope.h | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/os/hal/lib/peripherals/include/hal_gyroscope.h b/os/hal/lib/peripherals/include/hal_gyroscope.h index b973b0059..da38e29e2 100644 --- a/os/hal/lib/peripherals/include/hal_gyroscope.h +++ b/os/hal/lib/peripherals/include/hal_gyroscope.h @@ -42,22 +42,21 @@ /*===========================================================================*/
/**
- * @brief @p BaseSensor virtual methods table.
+ * @brief @p BaseGyroscope virtual methods table.
*/
-struct BaseSensorVMT {
- _base_sensor_methods
+struct BaseGyroscopeVMT {
+ _base_gyroscope_methods
};
/**
- * @brief Base stream class.
- * @details This class represents a generic blocking unbuffered sequential
- * data stream.
+ * @brief Base gyroscope class.
+ * @details This class represents a generic gyroscope MEMS.
*/
typedef struct {
/** @brief Virtual Methods Table.*/
- const struct BaseSensorVMT *vmt;
- _base_sensor_data
-} BaseSensor;
+ const struct BaseGyroscopeVMT *vmt;
+ _base_gyroscope_data
+} BaseGyroscope;
/*===========================================================================*/
/* Driver macros. */
@@ -68,14 +67,14 @@ typedef struct { */
#define _base_gyroscope_methods \
_base_sensor_methods \
- /* Reads the sensor raw data.*/ \
+ /* Remove the calibration data.*/ \
msg_t (*reset_calibration)(void); \
/* Invokes the calibration procedure.*/ \
msg_t (*calibrate)(void);
/**
- * @brief @p BaseSensor specific data.
- * @note It is empty because @p BaseSensor is only an interface
+ * @brief @p BaseGyroscope specific data.
+ * @note It is empty because @p BaseGyroscope is only an interface
* without implementation.
*/
#define _base_gyroscope_data
|