Library to handle the X_NUCLEO_IHM02A1 Motor Control Expansion Board based on the L6470 component.
Fork of X_NUCLEO_IHM02A1 by
Diff: Components/l6470/l6470_class.h
- Revision:
- 13:25a579b9b7c3
- Parent:
- 12:a942d51c488b
- Child:
- 14:e614697ebf34
--- a/Components/l6470/l6470_class.h Fri Jan 15 17:05:43 2016 +0000 +++ b/Components/l6470/l6470_class.h Tue Jan 19 16:07:00 2016 +0000 @@ -170,7 +170,7 @@ */ virtual int Init(void *init) { - return (int) L6470_Config((L6470_InitTypeDef *) init); + return (int) L6470_Config((void *) init); } /** @@ -1185,7 +1185,7 @@ uint8_t L6470_mA_2_OcdTh(float mA); float L6470_StallTh_2_mA(uint8_t StallTh); uint8_t L6470_mA_2_StallTh(float mA); - DrvStatusTypeDef L6470_Config(L6470_InitTypeDef *MotorParameterData); + DrvStatusTypeDef L6470_Config(void *init); void L6470_SetParam(eL6470_RegId_t L6470_RegId, uint32_t Value); uint32_t L6470_GetParam(eL6470_RegId_t L6470_RegId); void L6470_Run(eL6470_DirId_t L6470_DirId, uint32_t Speed);