Library to handle the X_NUCLEO_IHM02A1 Motor Control Expansion Board based on the L6470 component.
Dependencies: X_NUCLEO_COMMON ST_INTERFACES
Dependents: HelloWorld_IHM02A1 ConcorsoFinal HelloWorld_IHM02A1_mbedOS HelloWorld_IHM02A1-Serialinterpreter ... more
Fork of X_NUCLEO_IHM02A1 by
L6470_Private_Functions
[L6470_Private_Variables]
Modules | |
L6470_Exported_Functions | |
Functions | |
void | L6470_ResetAppCmdPkg (sL6470_AppCmdPkg_t *pL6470_AppCmdPkg) |
Reset the structure used to store the identifier of the L6470 application command and its the needed parameters. | |
void | L6470_FillAppCmdPkg (sL6470_AppCmdPkg_t *pL6470_AppCmdPkg, eL6470_AppCmdId_t L6470_AppCmdId, uint32_t p1, uint32_t p2, uint32_t p3) |
Fill the structure used to store the identifier of the L6470 application command and its the needed parameters. | |
void | L6470_PrepareAppCmdPkg (sL6470_AppCmdPkg_t *pL6470_AppCmdPkg, eL6470_AppCmdId_t L6470_AppCmdId, uint32_t p1, uint32_t p2, uint32_t p3) |
This function will fill the column of the L6470_AppCmdPkg related the L6470 to be addressed inside the daisy chain. | |
void | L6470_PrepareDaisyChainCommand (sL6470_AppCmdPkg_t *pL6470_AppCmdPkg, uint8_t *pL6470_DaisyChainSpiTxStruct) |
This function will translate the data inside the L6470_AppCmdPkg into the right data to be sent via SPI to the L6470 daisy chain. |
Function Documentation
void L6470_FillAppCmdPkg | ( | sL6470_AppCmdPkg_t * | pL6470_AppCmdPkg, |
eL6470_AppCmdId_t | L6470_AppCmdId, | ||
uint32_t | p1, | ||
uint32_t | p2, | ||
uint32_t | p3 | ||
) | [protected, inherited] |
Fill the structure used to store the identifier of the L6470 application command and its the needed parameters.
- Parameters:
-
L6470_Id The identifier of the L6470 target inside the daisy chain. pL6470_AppCmdPkg The structure to be filled. L6470_AppCmdId The identifier of the L6470 application command to be sent. p1 The 1st parameter (if it is not needed it will be not considered). p2 The 2nd parameter (if it is not needed it will be not considered). p3 The 3rd parameter (if it is not needed it will be not considered).
void L6470_PrepareAppCmdPkg | ( | sL6470_AppCmdPkg_t * | pL6470_AppCmdPkg, |
eL6470_AppCmdId_t | L6470_AppCmdId, | ||
uint32_t | p1, | ||
uint32_t | p2, | ||
uint32_t | p3 | ||
) | [protected, inherited] |
This function will fill the column of the L6470_AppCmdPkg related the L6470 to be addressed inside the daisy chain.
- Parameters:
-
L6470_Id The identifier of the L6470 target inside the daisy chain. pL6470_AppCmdPkg Pointer to the sL6470_AppCmdPkg_t to be filled. L6470_AppCmdId The identifier of the L6470 application command to be sent. p1 The 1st parameter (if it is not needed it will be not considered). p2 The 2nd parameter (if it is not needed it will be not considered). p3 The 3rd parameter (if it is not needed it will be not considered).
void L6470_PrepareDaisyChainCommand | ( | sL6470_AppCmdPkg_t * | pL6470_AppCmdPkg, |
uint8_t * | pL6470_DaisyChainSpiTxStruct | ||
) | [protected, inherited] |
This function will translate the data inside the L6470_AppCmdPkg into the right data to be sent via SPI to the L6470 daisy chain.
- Parameters:
-
pL6470_AppCmdPkg Pointer to the sL6470_AppCmdPkg_t to be filled. pL6470_DaisyChainSpiTxStruct Pointer to the structure used by SPI to send the commands.
void L6470_ResetAppCmdPkg | ( | sL6470_AppCmdPkg_t * | pL6470_AppCmdPkg ) | [protected, inherited] |
Generated on Tue Jul 12 2022 22:48:07 by 1.7.2