Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: ST_INTERFACES X_NUCLEO_COMMON
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 Sat Jul 16 2022 11:05:15 by
1.7.2
