Fabian Scherrer / X_NUCLEO_IHM02A1

Dependencies:   X_NUCLEO_COMMON ST_INTERFACES

Dependents:   SpleisserProgramm SpleisserProgramm_v2 SpleisserProgramm_v5 SpleisserProgramm_V7 ... more

Embed: (wiki syntax)

« Back to documentation index

L6470_AppCMDs_ToBePrepared

L6470_AppCMDs_ToBePrepared
[L6470_AppCMDs]

Modules

 L6470_Private_Variables
 

L6470 Private Variables.


Functions

void L6470_PrepareSetParam (eL6470_RegId_t L6470_RegId, uint32_t Value)
 Prepare to send L6470_SetParam command.
void L6470_PrepareGetParam (eL6470_RegId_t L6470_RegId)
 Prepare to send L6470_GetParam command.
void L6470_PrepareRun (eL6470_DirId_t L6470_DirId, uint32_t Speed)
 Prepare to send L6470_Run command.
void L6470_PrepareStepClock (eL6470_DirId_t L6470_DirId)
 Prepare to send L6470_StepClock command.
void L6470_PrepareMove (eL6470_DirId_t L6470_DirId, uint32_t N_Step)
 Prepare to send L6470_Move command.
void L6470_PrepareGoTo (uint32_t AbsPos)
 Prepare to send L6470_GoTo command.
void L6470_PrepareGoToDir (eL6470_DirId_t L6470_DirId, uint32_t AbsPos)
 Prepare to send L6470_GoToDIR command.
void L6470_PrepareGoUntil (eL6470_ActId_t L6470_ActId, eL6470_DirId_t L6470_DirId, uint32_t Speed)
 Prepare to send L6470_GoUntil command.
void L6470_PrepareReleaseSW (eL6470_ActId_t L6470_ActId, eL6470_DirId_t L6470_DirId)
 Prepare to send L6470_ReleaseSW.
void L6470_PrepareGoHome (void)
 Prepare to send L6470_GoHome command.
void L6470_PrepareGoMark (void)
 Prepare to send L6470_GoMark command.
void L6470_PrepareResetPos (void)
 Prepare to send L6470_ResetPos command.
void L6470_PrepareResetDevice (void)
 Prepare to send L6470_ResetDevice command.
void L6470_PrepareSoftStop (void)
 Prepare to send L6470_SoftStop command.
void L6470_PrepareHardStop (void)
 Prepare to send L6470_HardStop command.
void L6470_PrepareSoftHiZ (void)
 Prepare to send L6470_SoftHiZ command.
void L6470_PrepareHardHiZ (void)
 Prepare to send L6470_HardHiZ command.
void L6470_PrepareGetStatus (void)
 Prepare to send L6470_GetStatus command.
uint8_t * L6470_PerformPreparedApplicationCommand (void)
 Send via SPI the command stored inside the L6470_AppCmdPkg to the L6470 daisy chain.
void L6470_DaisyChainCommand (uint8_t *pL6470_DaisyChainSpiTxStruct, uint8_t *pL6470_DaisyChainSpiRxStruct)
 Send command to the L6470 daisy chain via SPI.
uint32_t L6470_ExtractReturnedData (uint8_t *pL6470_DaisyChainSpiRxStruct, uint8_t LengthByte)
 Extracts the data returned by the L6470 from the matrix that contains the received SPI data.
uint8_t L6470_CheckStatusRegisterFlag (uint8_t L6470_StatusRegisterFlagId)
 Check the state of a flag inside the L6470 STATUS register.
uint8_t * L6470_GetRegisterName (uint8_t id)
 Return the mnemonic name for the L6470 register.
status_t L6470_Config (void *init)
 Configures the L6470 registers.
void L6470_PrepareSetParam (eL6470_RegId_t L6470_RegId, uint32_t Value)
 Prepare to send L6470_SetParam command.
void L6470_PrepareGetParam (eL6470_RegId_t L6470_RegId)
 Prepare to send L6470_GetParam command.
void L6470_PrepareRun (eL6470_DirId_t L6470_DirId, uint32_t Speed)
 Prepare to send L6470_Run command.
void L6470_PrepareStepClock (eL6470_DirId_t L6470_DirId)
 Prepare to send L6470_StepClock command.
void L6470_PrepareMove (eL6470_DirId_t L6470_DirId, uint32_t N_Step)
 Prepare to send L6470_Move command.
void L6470_PrepareGoTo (uint32_t AbsPos)
 Prepare to send L6470_GoTo command.
void L6470_PrepareGoToDir (eL6470_DirId_t L6470_DirId, uint32_t AbsPos)
 Prepare to send L6470_GoToDIR command.
void L6470_PrepareGoUntil (eL6470_ActId_t L6470_ActId, eL6470_DirId_t L6470_DirId, uint32_t Speed)
 Prepare to send L6470_GoUntil command.
void L6470_PrepareReleaseSW (eL6470_ActId_t L6470_ActId, eL6470_DirId_t L6470_DirId)
 Prepare to send L6470_ReleaseSW.
void L6470_PrepareGoHome (void)
 Prepare to send L6470_GoHome command.
void L6470_PrepareGoMark (void)
 Prepare to send L6470_GoMark command.
void L6470_PrepareResetPos (void)
 Prepare to send L6470_ResetPos command.
void L6470_PrepareResetDevice (void)
 Prepare to send L6470_ResetDevice command.
void L6470_PrepareSoftStop (void)
 Prepare to send L6470_SoftStop command.
void L6470_PrepareHardStop (void)
 Prepare to send L6470_HardStop command.
void L6470_PrepareSoftHiZ (void)
 Prepare to send L6470_SoftHiZ command.
void L6470_PrepareHardHiZ (void)
 Prepare to send L6470_HardHiZ command.
void L6470_PrepareGetStatus (void)
 Prepare to send L6470_GetStatus command.
uint8_t * L6470_PerformPreparedApplicationCommand (void)
 Send via SPI the command stored inside the L6470_AppCmdPkg to the L6470 daisy chain.
void L6470_DaisyChainCommand (uint8_t *pL6470_DaisyChainSpiTxStruct, uint8_t *pL6470_DaisyChainSpiRxStruct)
 Send command to the L6470 daisy chain via SPI.
uint32_t L6470_ExtractReturnedData (uint8_t *pL6470_DaisyChainSpiRxStruct, uint8_t LengthByte)
 Extracts the data returned by the L6470 from the matrix that contains the received SPI data.
uint8_t L6470_CheckStatusRegisterFlag (uint8_t L6470_StatusRegisterFlagId)
 Check the state of a flag inside the L6470 STATUS register.
uint8_t * L6470_GetRegisterName (uint8_t id)
 Return the mnemonic name for the L6470 register.
status_t L6470_Config (void *init)
 Configures the L6470 registers.

Variables

static const sL6470_Register_t _L6470_Register [L6470REGIDSIZE]
 Array whose elements are a structure in which store information about the L6470 Registers (the address, the names, the length in bits, the reset value)
static const
sL6470_ApplicationCommand_t 
_L6470_ApplicationCommand [L6470APPCMDIDSIZE]
 Array whose elements are a structure in which store information about the L6470 Application Commands (the mnemonic name, the number of needed parameters, the related funtion to call)
static const sL6470_Direction_t _L6470_Direction [L6470DIRIDSIZE]
 The mnemonic names for the L6470 direction.
static const sL6470_ACT_t _L6470_ACT [L6470ACTIDSIZE]
 Action taken about ABS_POS register.

Function Documentation

uint8_t L6470_CheckStatusRegisterFlag ( uint8_t  L6470_StatusRegisterFlagId ) [protected, inherited]

Check the state of a flag inside the L6470 STATUS register.

Parameters:
L6470_IdThe identifier of the L6470 target inside the daisy chain.
L6470_StatusRegisterFlagIdThe identifier of the L6470 STATUS flag to be checked.
Return values:
stateThe flag state.

Definition at line 1323 of file L6470.cpp.

uint8_t L6470_CheckStatusRegisterFlag ( uint8_t  L6470_StatusRegisterFlagId ) [protected, inherited]

Check the state of a flag inside the L6470 STATUS register.

Parameters:
L6470_IdThe identifier of the L6470 target inside the daisy chain.
L6470_StatusRegisterFlagIdThe identifier of the L6470 STATUS flag to be checked.
Return values:
stateThe flag state.

Definition at line 2711 of file L6470.cpp.

status_t L6470_Config ( void *  init ) [protected, inherited]

Configures the L6470 registers.

Parameters:
initThe pointer to the initialization structure.

Definition at line 1401 of file L6470.cpp.

status_t L6470_Config ( void *  init ) [protected, inherited]

Configures the L6470 registers.

Parameters:
initThe pointer to the initialization structure.

Definition at line 2789 of file L6470.cpp.

void L6470_DaisyChainCommand ( uint8_t *  pL6470_DaisyChainSpiTxStruct,
uint8_t *  pL6470_DaisyChainSpiRxStruct 
) [protected, inherited]

Send command to the L6470 daisy chain via SPI.

Parameters:
pL6470_DaisyChainSpiTxStructPointer to the matrix array of bytes to be sent to the daisy chain L6470
pL6470_DaisyChainSpiRxStructPointer to the matrix array of bytes to be received from the daisy chain L6470

<Simply deselect time delay for SPI nCS

Definition at line 1274 of file L6470.cpp.

void L6470_DaisyChainCommand ( uint8_t *  pL6470_DaisyChainSpiTxStruct,
uint8_t *  pL6470_DaisyChainSpiRxStruct 
) [protected, inherited]

Send command to the L6470 daisy chain via SPI.

Parameters:
pL6470_DaisyChainSpiTxStructPointer to the matrix array of bytes to be sent to the daisy chain L6470
pL6470_DaisyChainSpiRxStructPointer to the matrix array of bytes to be received from the daisy chain L6470

<Simply deselect time delay for SPI nCS

Definition at line 2662 of file L6470.cpp.

uint32_t L6470_ExtractReturnedData ( uint8_t *  pL6470_DaisyChainSpiRxStruct,
uint8_t  LengthByte 
) [protected, inherited]

Extracts the data returned by the L6470 from the matrix that contains the received SPI data.

Parameters:
L6470_IdThe identifier of the L6470 target inside the daisy chain.
pL6470_DaisyChainSpiRxStructuint8_t-pointer to the matrix that contains the received data by SPI from the L6470 daisy chain.
LengthByteThe number of bytes about the received value.

Definition at line 2688 of file L6470.cpp.

uint32_t L6470_ExtractReturnedData ( uint8_t *  pL6470_DaisyChainSpiRxStruct,
uint8_t  LengthByte 
) [protected, inherited]

Extracts the data returned by the L6470 from the matrix that contains the received SPI data.

Parameters:
L6470_IdThe identifier of the L6470 target inside the daisy chain.
pL6470_DaisyChainSpiRxStructuint8_t-pointer to the matrix that contains the received data by SPI from the L6470 daisy chain.
LengthByteThe number of bytes about the received value.

Definition at line 1300 of file L6470.cpp.

uint8_t * L6470_GetRegisterName ( uint8_t  id ) [protected, inherited]

Return the mnemonic name for the L6470 register.

Parameters:
idThe identifier of the L6470 register.

Definition at line 1385 of file L6470.cpp.

uint8_t * L6470_GetRegisterName ( uint8_t  id ) [protected, inherited]

Return the mnemonic name for the L6470 register.

Parameters:
idThe identifier of the L6470 register.

Definition at line 2773 of file L6470.cpp.

uint8_t * L6470_PerformPreparedApplicationCommand ( void   ) [protected, inherited]

Send via SPI the command stored inside the L6470_AppCmdPkg to the L6470 daisy chain.

Return values:
(uint8_t*)data->L6470_DaisyChainSpiRxStructThe pointer to the structure containing returned values from each L6470 of the daisy chain for each sent SPI data.

Definition at line 2649 of file L6470.cpp.

uint8_t * L6470_PerformPreparedApplicationCommand ( void   ) [protected, inherited]

Send via SPI the command stored inside the L6470_AppCmdPkg to the L6470 daisy chain.

Return values:
(uint8_t*)data->L6470_DaisyChainSpiRxStructThe pointer to the structure containing returned values from each L6470 of the daisy chain for each sent SPI data.

Definition at line 1261 of file L6470.cpp.

void L6470_PrepareGetParam ( eL6470_RegId_t  L6470_RegId ) [protected, inherited]

Prepare to send L6470_GetParam command.

Parameters:
L6470_IdThe L6470 identifier inside the daisy chain.
L6470_RegIdThe identifier of the L6470 register to be addressed.
Return values:
ReceivedValueThe register value.
Note:
This function will properly fill the right column of the L6470_AppCmdPkg.
The commad will be sent by L6470_PerformPreparedApplicationCommand.

Definition at line 1041 of file L6470.cpp.

void L6470_PrepareGetParam ( eL6470_RegId_t  L6470_RegId ) [protected, inherited]

Prepare to send L6470_GetParam command.

Parameters:
L6470_IdThe L6470 identifier inside the daisy chain.
L6470_RegIdThe identifier of the L6470 register to be addressed.
Return values:
ReceivedValueThe register value.
Note:
This function will properly fill the right column of the L6470_AppCmdPkg.
The commad will be sent by L6470_PerformPreparedApplicationCommand.

Definition at line 2429 of file L6470.cpp.

void L6470_PrepareGetStatus ( void   ) [protected, inherited]

Prepare to send L6470_GetStatus command.

Note:
This function will properly fill the right column of the L6470_AppCmdPkg.
The commad will be sent by L6470_PerformPreparedApplicationCommand.

Definition at line 1246 of file L6470.cpp.

void L6470_PrepareGetStatus ( void   ) [protected, inherited]

Prepare to send L6470_GetStatus command.

Note:
This function will properly fill the right column of the L6470_AppCmdPkg.
The commad will be sent by L6470_PerformPreparedApplicationCommand.

Definition at line 2634 of file L6470.cpp.

void L6470_PrepareGoHome ( void   ) [protected, inherited]

Prepare to send L6470_GoHome command.

Note:
This function will properly fill the right column of the L6470_AppCmdPkg.
The commad will be sent by L6470_PerformPreparedApplicationCommand.

Definition at line 2538 of file L6470.cpp.

void L6470_PrepareGoHome ( void   ) [protected, inherited]

Prepare to send L6470_GoHome command.

Note:
This function will properly fill the right column of the L6470_AppCmdPkg.
The commad will be sent by L6470_PerformPreparedApplicationCommand.

Definition at line 1150 of file L6470.cpp.

void L6470_PrepareGoMark ( void   ) [protected, inherited]

Prepare to send L6470_GoMark command.

Note:
This function will properly fill the right column of the L6470_AppCmdPkg.
The commad will be sent by L6470_PerformPreparedApplicationCommand.

Definition at line 2550 of file L6470.cpp.

void L6470_PrepareGoMark ( void   ) [protected, inherited]

Prepare to send L6470_GoMark command.

Note:
This function will properly fill the right column of the L6470_AppCmdPkg.
The commad will be sent by L6470_PerformPreparedApplicationCommand.

Definition at line 1162 of file L6470.cpp.

void L6470_PrepareGoTo ( uint32_t  AbsPos ) [protected, inherited]

Prepare to send L6470_GoTo command.

Parameters:
AbsPosThe target absolute position.
Note:
This function will properly fill the right column of the L6470_AppCmdPkg.
The commad will be sent by L6470_PerformPreparedApplicationCommand.

Definition at line 1095 of file L6470.cpp.

void L6470_PrepareGoTo ( uint32_t  AbsPos ) [protected, inherited]

Prepare to send L6470_GoTo command.

Parameters:
AbsPosThe target absolute position.
Note:
This function will properly fill the right column of the L6470_AppCmdPkg.
The commad will be sent by L6470_PerformPreparedApplicationCommand.

Definition at line 2483 of file L6470.cpp.

void L6470_PrepareGoToDir ( eL6470_DirId_t  L6470_DirId,
uint32_t  AbsPos 
) [protected, inherited]

Prepare to send L6470_GoToDIR command.

Parameters:
L6470_DirIdThe identifier of the L6470 motion direction.
AbsPosThe target absolute position.
Note:
This function will properly fill the right column of the L6470_AppCmdPkg.
The commad will be sent by L6470_PerformPreparedApplicationCommand.

Definition at line 2497 of file L6470.cpp.

void L6470_PrepareGoToDir ( eL6470_DirId_t  L6470_DirId,
uint32_t  AbsPos 
) [protected, inherited]

Prepare to send L6470_GoToDIR command.

Parameters:
L6470_DirIdThe identifier of the L6470 motion direction.
AbsPosThe target absolute position.
Note:
This function will properly fill the right column of the L6470_AppCmdPkg.
The commad will be sent by L6470_PerformPreparedApplicationCommand.

Definition at line 1109 of file L6470.cpp.

void L6470_PrepareGoUntil ( eL6470_ActId_t  L6470_ActId,
eL6470_DirId_t  L6470_DirId,
uint32_t  Speed 
) [protected, inherited]

Prepare to send L6470_GoUntil command.

Parameters:
L6470_ActIdThe identifier of the L6470 action about the absolute position.
L6470_DirIdThe identifier of the L6470 motion direction.
SpeedThe speed value as (([step/s] * 250e-9) / 2^-28)
Note:
This function will properly fill the right column of the L6470_AppCmdPkg.
The commad will be sent by L6470_PerformPreparedApplicationCommand.

Definition at line 2512 of file L6470.cpp.

void L6470_PrepareGoUntil ( eL6470_ActId_t  L6470_ActId,
eL6470_DirId_t  L6470_DirId,
uint32_t  Speed 
) [protected, inherited]

Prepare to send L6470_GoUntil command.

Parameters:
L6470_ActIdThe identifier of the L6470 action about the absolute position.
L6470_DirIdThe identifier of the L6470 motion direction.
SpeedThe speed value as (([step/s] * 250e-9) / 2^-28)
Note:
This function will properly fill the right column of the L6470_AppCmdPkg.
The commad will be sent by L6470_PerformPreparedApplicationCommand.

Definition at line 1124 of file L6470.cpp.

void L6470_PrepareHardHiZ ( void   ) [protected, inherited]

Prepare to send L6470_HardHiZ command.

Note:
This function will properly fill the right column of the L6470_AppCmdPkg.
The commad will be sent by L6470_PerformPreparedApplicationCommand.

Definition at line 1234 of file L6470.cpp.

void L6470_PrepareHardHiZ ( void   ) [protected, inherited]

Prepare to send L6470_HardHiZ command.

Note:
This function will properly fill the right column of the L6470_AppCmdPkg.
The commad will be sent by L6470_PerformPreparedApplicationCommand.

Definition at line 2622 of file L6470.cpp.

void L6470_PrepareHardStop ( void   ) [protected, inherited]

Prepare to send L6470_HardStop command.

Note:
This function will properly fill the right column of the L6470_AppCmdPkg.
The commad will be sent by L6470_PerformPreparedApplicationCommand.

Definition at line 1210 of file L6470.cpp.

void L6470_PrepareHardStop ( void   ) [protected, inherited]

Prepare to send L6470_HardStop command.

Note:
This function will properly fill the right column of the L6470_AppCmdPkg.
The commad will be sent by L6470_PerformPreparedApplicationCommand.

Definition at line 2598 of file L6470.cpp.

void L6470_PrepareMove ( eL6470_DirId_t  L6470_DirId,
uint32_t  N_Step 
) [protected, inherited]

Prepare to send L6470_Move command.

Parameters:
L6470_DirIdThe identifier of the L6470 motion direction.
N_StepThe number of microsteps.
Note:
This function will properly fill the right column of the L6470_AppCmdPkg.
The commad will be sent by L6470_PerformPreparedApplicationCommand.

Definition at line 1082 of file L6470.cpp.

void L6470_PrepareMove ( eL6470_DirId_t  L6470_DirId,
uint32_t  N_Step 
) [protected, inherited]

Prepare to send L6470_Move command.

Parameters:
L6470_DirIdThe identifier of the L6470 motion direction.
N_StepThe number of microsteps.
Note:
This function will properly fill the right column of the L6470_AppCmdPkg.
The commad will be sent by L6470_PerformPreparedApplicationCommand.

Definition at line 2470 of file L6470.cpp.

void L6470_PrepareReleaseSW ( eL6470_ActId_t  L6470_ActId,
eL6470_DirId_t  L6470_DirId 
) [protected, inherited]

Prepare to send L6470_ReleaseSW.

Parameters:
L6470_ActIdThe identifier of the L6470 action about the absolute position.
L6470_DirIdThe identifier of the L6470 motion direction.
Note:
This function will properly fill the right column of the L6470_AppCmdPkg.
The commad will be sent by L6470_PerformPreparedApplicationCommand.

Definition at line 2526 of file L6470.cpp.

void L6470_PrepareReleaseSW ( eL6470_ActId_t  L6470_ActId,
eL6470_DirId_t  L6470_DirId 
) [protected, inherited]

Prepare to send L6470_ReleaseSW.

Parameters:
L6470_ActIdThe identifier of the L6470 action about the absolute position.
L6470_DirIdThe identifier of the L6470 motion direction.
Note:
This function will properly fill the right column of the L6470_AppCmdPkg.
The commad will be sent by L6470_PerformPreparedApplicationCommand.

Definition at line 1138 of file L6470.cpp.

void L6470_PrepareResetDevice ( void   ) [protected, inherited]

Prepare to send L6470_ResetDevice command.

Note:
This function will properly fill the right column of the L6470_AppCmdPkg.
The commad will be sent by L6470_PerformPreparedApplicationCommand.

Definition at line 2574 of file L6470.cpp.

void L6470_PrepareResetDevice ( void   ) [protected, inherited]

Prepare to send L6470_ResetDevice command.

Note:
This function will properly fill the right column of the L6470_AppCmdPkg.
The commad will be sent by L6470_PerformPreparedApplicationCommand.

Definition at line 1186 of file L6470.cpp.

void L6470_PrepareResetPos ( void   ) [protected, inherited]

Prepare to send L6470_ResetPos command.

Note:
This function will properly fill the right column of the L6470_AppCmdPkg.
The commad will be sent by L6470_PerformPreparedApplicationCommand.

Definition at line 2562 of file L6470.cpp.

void L6470_PrepareResetPos ( void   ) [protected, inherited]

Prepare to send L6470_ResetPos command.

Note:
This function will properly fill the right column of the L6470_AppCmdPkg.
The commad will be sent by L6470_PerformPreparedApplicationCommand.

Definition at line 1174 of file L6470.cpp.

void L6470_PrepareRun ( eL6470_DirId_t  L6470_DirId,
uint32_t  Speed 
) [protected, inherited]

Prepare to send L6470_Run command.

Parameters:
L6470_DirIdThe identifier of the L6470 motion direction.
SpeedThe speed value as (([step/s] * 250e-9) / 2^-28)
Note:
This function will properly fill the right column of the L6470_AppCmdPkg.
The commad will be sent by L6470_PerformPreparedApplicationCommand.

Definition at line 2443 of file L6470.cpp.

void L6470_PrepareRun ( eL6470_DirId_t  L6470_DirId,
uint32_t  Speed 
) [protected, inherited]

Prepare to send L6470_Run command.

Parameters:
L6470_DirIdThe identifier of the L6470 motion direction.
SpeedThe speed value as (([step/s] * 250e-9) / 2^-28)
Note:
This function will properly fill the right column of the L6470_AppCmdPkg.
The commad will be sent by L6470_PerformPreparedApplicationCommand.

Definition at line 1055 of file L6470.cpp.

void L6470_PrepareSetParam ( eL6470_RegId_t  L6470_RegId,
uint32_t  Value 
) [protected, inherited]

Prepare to send L6470_SetParam command.

Parameters:
L6470_RegIdThe identifier of the L6470 register to be addressed.
ValueThe new value.
Note:
This function will properly fill the right column of the L6470_AppCmdPkg.
The commad will be sent by L6470_PerformPreparedApplicationCommand.

Definition at line 2413 of file L6470.cpp.

void L6470_PrepareSetParam ( eL6470_RegId_t  L6470_RegId,
uint32_t  Value 
) [protected, inherited]

Prepare to send L6470_SetParam command.

Parameters:
L6470_RegIdThe identifier of the L6470 register to be addressed.
ValueThe new value.
Note:
This function will properly fill the right column of the L6470_AppCmdPkg.
The commad will be sent by L6470_PerformPreparedApplicationCommand.

Definition at line 1025 of file L6470.cpp.

void L6470_PrepareSoftHiZ ( void   ) [protected, inherited]

Prepare to send L6470_SoftHiZ command.

Note:
This function will properly fill the right column of the L6470_AppCmdPkg.
The commad will be sent by L6470_PerformPreparedApplicationCommand.

Definition at line 2610 of file L6470.cpp.

void L6470_PrepareSoftHiZ ( void   ) [protected, inherited]

Prepare to send L6470_SoftHiZ command.

Note:
This function will properly fill the right column of the L6470_AppCmdPkg.
The commad will be sent by L6470_PerformPreparedApplicationCommand.

Definition at line 1222 of file L6470.cpp.

void L6470_PrepareSoftStop ( void   ) [protected, inherited]

Prepare to send L6470_SoftStop command.

Note:
This function will properly fill the right column of the L6470_AppCmdPkg.
The commad will be sent by L6470_PerformPreparedApplicationCommand.

Definition at line 2586 of file L6470.cpp.

void L6470_PrepareSoftStop ( void   ) [protected, inherited]

Prepare to send L6470_SoftStop command.

Note:
This function will properly fill the right column of the L6470_AppCmdPkg.
The commad will be sent by L6470_PerformPreparedApplicationCommand.

Definition at line 1198 of file L6470.cpp.

void L6470_PrepareStepClock ( eL6470_DirId_t  L6470_DirId ) [protected, inherited]

Prepare to send L6470_StepClock command.

Parameters:
L6470_DirIdThe identifier of the L6470 motion direction.
Note:
This function will properly fill the right column of the L6470_AppCmdPkg.
The commad will be sent by L6470_PerformPreparedApplicationCommand.

Definition at line 2456 of file L6470.cpp.

void L6470_PrepareStepClock ( eL6470_DirId_t  L6470_DirId ) [protected, inherited]

Prepare to send L6470_StepClock command.

Parameters:
L6470_DirIdThe identifier of the L6470 motion direction.
Note:
This function will properly fill the right column of the L6470_AppCmdPkg.
The commad will be sent by L6470_PerformPreparedApplicationCommand.

Definition at line 1068 of file L6470.cpp.


Variable Documentation

const sL6470_ACT_t _L6470_ACT [static, protected, inherited]
Initial value:
 {
  {"RST", 0x00},  
  {"CPY", 0x01}   
}

Action taken about ABS_POS register.

Definition at line 3079 of file L6470.h.

const sL6470_ApplicationCommand_t _L6470_ApplicationCommand [static, protected, inherited]
Initial value:
  {
  {"NOP",         0x00, 0},
  {"SETPARAM",    0x00, 2},
  {"GETPARAM",    0x20, 1},
  {"RUN",         0x50, 2},
  {"STEPCLOCK",   0x58, 1},
  {"MOVE",        0x40, 2},
  {"GOTO",        0x60, 1},
  {"GOTO_DIR",    0x68, 2},
  {"GOUNTIL",     0x82, 3},
  {"RELEASESW",   0x92, 2},
  {"GOHOME",      0x70, 0},
  {"GOMARK",      0x78, 0},
  {"RESETPOS",    0xD8, 0},
  {"RESETDEVICE", 0xC0, 0},
  {"SOFTSTOP",    0xB0, 0},
  {"HARDSTOP",    0xB8, 0},
  {"SOFTHIZ",     0xA0, 0},
  {"HARDHIZ",     0xA8, 0},
  {"GETSTATUS",   0xD0, 0}
}

Array whose elements are a structure in which store information about the L6470 Application Commands (the mnemonic name, the number of needed parameters, the related funtion to call)

Definition at line 3077 of file L6470.h.

const sL6470_Direction_t _L6470_Direction [static, protected, inherited]
Initial value:
 {
  {"REV", 0x00},  
  {"FWD", 0x01}   
}

The mnemonic names for the L6470 direction.

Definition at line 3078 of file L6470.h.

const sL6470_Register_t _L6470_Register [static, protected, inherited]
Initial value:
 {
  {0x01 , "ABS_POS",   22, 3, 0x000000},  
  {0x02 , "EL_POS",     9, 2, 0x000},     
  {0x03 , "MARK",      22, 3, 0x000000},  
  {0x04 , "SPEED",     20, 3, 0x0000},    
  {0x05 , "ACC",       12, 2, 0x08A},     
  {0x06 , "DEC",       12, 2, 0x08A},     
  {0x07 , "MAX_SPEED", 10, 2, 0x041},     
  {0x08 , "MIN_SPEED", 13, 2, 0x000},     
  {0x15 , "FS_SPD",    10, 2, 0x027},     
  {0x09 , "KVAL_HOLD",  8, 1, 0x29},      
  {0x0A , "KVAL_RUN",   8, 1, 0x29},      
  {0x0B , "KVAL_ACC",   8, 1, 0x29},      
  {0x0C , "KVAL_DEC",   8, 1, 0x29},      
  {0x0D , "INT_SPEED", 14, 2, 0x0408},    
  {0x0E , "ST_SLP",     8, 1, 0x19},      
  {0x0F , "FN_SLP_ACC", 8, 1, 0x29},      
  {0x10 , "FN_SLP_DEC", 8, 1, 0x29},      
  {0x11 , "K_THERM",    4, 1, 0x0},       
  {0x12 , "ADC_OUT",    5, 1, 0x00},      
  {0x13 , "OCD_TH",     4, 1, 0x8},       
  {0x14 , "STALL_TH",   7, 1, 0x40},      
  {0x16 , "STEP_MODE",  8, 1, 0x7},       
  {0x17 , "ALARM_EN",   8, 1, 0xFF},      
  {0x18 , "CONFIG",    16, 2, 0x2E88},    
  {0x19 , "STATUS",    16, 2, 0x0000}     
}

Array whose elements are a structure in which store information about the L6470 Registers (the address, the names, the length in bits, the reset value)

Definition at line 3076 of file L6470.h.