f

Dependencies:   ST_INTERFACES X_NUCLEO_COMMON

Fork of X_NUCLEO_IHM01A1 by ST

Files at this revision

API Documentation at this revision

Comitter:
Davidroid
Date:
Wed Nov 25 12:08:01 2015 +0000
Parent:
8:42e0b00b1e4d
Child:
10:c3824af0caf4
Commit message:
+ Minor changes to align to the StepperMotor interface.

Changed in this revision

Components/Interfaces/Component_class.h Show annotated file Show diff for this revision Revisions of this file
Components/l6474/l6474_class.h Show annotated file Show diff for this revision Revisions of this file
--- a/Components/Interfaces/Component_class.h	Mon Nov 23 11:10:54 2015 +0000
+++ b/Components/Interfaces/Component_class.h	Wed Nov 25 12:08:01 2015 +0000
@@ -57,14 +57,14 @@
 public:
     /**
      * @brief  Initializing the component.
-     * @param  init pointer to device specific initalization structure.
+     * @param  init Pointer to device specific initalization structure.
      * @retval "0" in case of success, an error code otherwise.
      */
     virtual int Init(void *init) = 0;
 
     /**
      * @brief  Getting the ID of the component.
-     * @param  id pointer to an allocated variable to store the ID into.
+     * @param  id Pointer to an allocated variable to store the ID into.
      * @retval "0" in case of success, an error code otherwise.
      */
     virtual int ReadID(uint8_t *id) = 0;
--- a/Components/l6474/l6474_class.h	Mon Nov 23 11:10:54 2015 +0000
+++ b/Components/l6474/l6474_class.h	Wed Nov 25 12:08:01 2015 +0000
@@ -529,7 +529,7 @@
         L6474_AttachErrorHandler((void (*)(uint16_t error)) fptr);
     }
 
-   /**
+    /**
      * @brief  Enabling the device.
      * @param  None.
      * @retval None.
@@ -539,7 +539,7 @@
         L6474_CmdEnable();
     }
     
-   /**
+    /**
      * @brief  Disabling the device.
      * @param  None.
      * @retval None.
@@ -549,6 +549,16 @@
         L6474_CmdDisable();
     }
 
+    /**
+     * @brief  Getting the version of the firmware.
+     * @param  None.
+     * @retval The version of the firmware.
+     */
+    virtual uint8_t GetFwVersion(void)
+    {
+        return (uint8_t) L6474_GetFwVersion();
+    }
+
 
     /*** Public Interrupt Related Methods ***/