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_Conversion_Functions

[L6470_Exported_Functions]

The following functions act just on one driver inside the L6470 daisy chain. More...

## Modules | |

L6470_AppCMDs | |

## Functions | |

int32_t | L6470_AbsPos_2_Position (uint32_t AbsPos) |

Convert the absolute position as 2's complement format into the signed number. | |

uint32_t | L6470_Position_2_AbsPos (int32_t Position) |

Convert the position as signed number into absolute position as 2's complement format. | |

float | L6470_Speed_2_Step_s (uint32_t Speed) |

Convert the SPEED register value into step/s. | |

uint32_t | L6470_Step_s_2_Speed (float Step_s) |

Convert the speed as step/s into a right value for SPEED register. | |

float | L6470_Acc_2_Step_s2 (uint16_t Acc) |

Convert the ACC register value into step/(s^2). | |

uint16_t | L6470_Step_s2_2_Acc (float Step_s2) |

Convert the acceleartion as step/(s^2) into a right value for ACC register. | |

float | L6470_Dec_2_Step_s2 (uint16_t Dec) |

Convert the DEC register value into step/(s^2). | |

uint16_t | L6470_Step_s2_2_Dec (float Step_s2) |

Convert the deceleration as step/(s^2) into a right value for DEC register. | |

float | L6470_MaxSpeed_2_Step_s (uint16_t MaxSpeed) |

Convert the MAX_SPEED register value into step/s. | |

uint16_t | L6470_Step_s_2_MaxSpeed (float Step_s) |

Convert the max speed as step/s into a right value for MAX_SPEED register. | |

float | L6470_MinSpeed_2_Step_s (uint16_t MinSpeed) |

Convert the MIN_SPEED register value into step/s. | |

uint16_t | L6470_Step_s_2_MinSpeed (float Step_s) |

Convert the min speed as step/s into a right value for MIN_SPEED register. | |

float | L6470_FsSpd_2_Step_s (uint16_t FsSpd) |

Convert the FS_SPD register value into step/s. | |

uint16_t | L6470_Step_s_2_FsSpd (float Step_s) |

Convert the full-step speed as step/s into a right value for FS_SPD register. | |

float | L6470_IntSpeed_2_Step_s (uint16_t IntSpeed) |

Convert the INT_SPEED register value into step/s. | |

uint16_t | L6470_Step_s_2_IntSpeed (float Step_s) |

Convert the intersect speed as step/s into a right value for INT_SPEED register. | |

float | L6470_StSlp_2_s_Step (uint8_t StSlp) |

Convert the ST_SLP register value into s/step. | |

uint8_t | L6470_s_Step_2_StSlp (float s_Step) |

Convert the intersect speed as step/s into a right value for INT_SPEED register. | |

float | L6470_FnSlpAcc_2_s_Step (uint8_t FnSlpAcc) |

Convert the INT_SPEED register value into step/s. | |

uint8_t | L6470_s_Step_2_FnSlpAcc (float s_Step) |

Convert the intersect speed as step/s into a right value for INT_SPEED register. | |

float | L6470_FnSlpDec_2_s_Step (uint8_t FnSlpDec) |

Convert the INT_SPEED register value into step/s. | |

uint8_t | L6470_s_Step_2_FnSlpDec (float s_Step) |

Convert the intersect speed as step/s into a right value for INT_SPEED register. | |

float | L6470_OcdTh_2_mA (uint8_t OcdTh) |

Convert the OCD_TH register value into mA. | |

uint8_t | L6470_mA_2_OcdTh (float mA) |

Convert the overcurrent threshold as mA into a right value for OCD_TH register. | |

float | L6470_StallTh_2_mA (uint8_t StallTh) |

Convert the STALL_TH register value into mA. | |

uint8_t | L6470_mA_2_StallTh (float mA) |

Convert the stall detection threshold as mA into a right value for STALL_TH register. |

## Detailed Description

The following functions act just on one driver inside the L6470 daisy chain.

The command is immediately sent.

## Function Documentation

int32_t L6470_AbsPos_2_Position | ( | uint32_t | AbsPos ) |
` [protected, inherited]` |

float L6470_Acc_2_Step_s2 | ( | uint16_t | Acc ) |
` [protected, inherited]` |

float L6470_Dec_2_Step_s2 | ( | uint16_t | Dec ) |
` [protected, inherited]` |

float L6470_FnSlpAcc_2_s_Step | ( | uint8_t | FnSlpAcc ) |
` [protected, inherited]` |

float L6470_FnSlpDec_2_s_Step | ( | uint8_t | FnSlpDec ) |
` [protected, inherited]` |

float L6470_FsSpd_2_Step_s | ( | uint16_t | FsSpd ) |
` [protected, inherited]` |

float L6470_IntSpeed_2_Step_s | ( | uint16_t | IntSpeed ) |
` [protected, inherited]` |

uint8_t L6470_mA_2_OcdTh | ( | float | mA ) |
` [protected, inherited]` |

uint8_t L6470_mA_2_StallTh | ( | float | mA ) |
` [protected, inherited]` |

float L6470_MaxSpeed_2_Step_s | ( | uint16_t | MaxSpeed ) |
` [protected, inherited]` |

float L6470_MinSpeed_2_Step_s | ( | uint16_t | MinSpeed ) |
` [protected, inherited]` |

float L6470_OcdTh_2_mA | ( | uint8_t | OcdTh ) |
` [protected, inherited]` |

uint32_t L6470_Position_2_AbsPos | ( | int32_t | Position ) |
` [protected, inherited]` |

uint8_t L6470_s_Step_2_FnSlpAcc | ( | float | s_Step ) |
` [protected, inherited]` |

uint8_t L6470_s_Step_2_FnSlpDec | ( | float | s_Step ) |
` [protected, inherited]` |

uint8_t L6470_s_Step_2_StSlp | ( | float | s_Step ) |
` [protected, inherited]` |

float L6470_Speed_2_Step_s | ( | uint32_t | Speed ) |
` [protected, inherited]` |

float L6470_StallTh_2_mA | ( | uint8_t | StallTh ) |
` [protected, inherited]` |

uint16_t L6470_Step_s2_2_Acc | ( | float | Step_s2 ) |
` [protected, inherited]` |

uint16_t L6470_Step_s2_2_Dec | ( | float | Step_s2 ) |
` [protected, inherited]` |

uint16_t L6470_Step_s_2_FsSpd | ( | float | Step_s ) |
` [protected, inherited]` |

uint16_t L6470_Step_s_2_IntSpeed | ( | float | Step_s ) |
` [protected, inherited]` |

uint16_t L6470_Step_s_2_MaxSpeed | ( | float | Step_s ) |
` [protected, inherited]` |

uint16_t L6470_Step_s_2_MinSpeed | ( | float | Step_s ) |
` [protected, inherited]` |

uint32_t L6470_Step_s_2_Speed | ( | float | Step_s ) |
` [protected, inherited]` |

Generated on Tue Dec 18 2018 08:19:51 by 1.7.2