Go to the source code of this file.
◆ SIMPLEFOC_CURRENT_SENSE_INIT_FAILED
| #define SIMPLEFOC_CURRENT_SENSE_INIT_FAILED ((void*)-1) |
◆ GenericCurrentSenseParams
◆ _configureADCInline()
| void * _configureADCInline |
( |
const void * |
driver_params, |
|
|
const int |
pinA, |
|
|
const int |
pinB, |
|
|
const int |
pinC = NOT_SET |
|
) |
| |
function reading an ADC value and returning the read voltage
- Parameters
-
| driver_params | - driver parameter structure - hardware specific |
| pinA | - adc pin A |
| pinB | - adc pin B |
| pinC | - adc pin C |
◆ _configureADCLowSide()
| void * _configureADCLowSide |
( |
const void * |
driver_params, |
|
|
const int |
pinA, |
|
|
const int |
pinB, |
|
|
const int |
pinC = NOT_SET |
|
) |
| |
function reading an ADC value and returning the read voltage
- Parameters
-
| driver_params | - driver parameter structure - hardware specific |
| pinA | - adc pin A |
| pinB | - adc pin B |
| pinC | - adc pin C |
◆ _driverSyncLowSide()
| void * _driverSyncLowSide |
( |
void * |
driver_params, |
|
|
void * |
cs_params |
|
) |
| |
function syncing the Driver with the ADC for the LowSide Sensing
- Parameters
-
| driver_params | - driver parameter structure - hardware specific |
| cs_params | - current sense parameter structure - hardware specific |
- Returns
- void* - returns the pointer to the current sense parameter structure (unchanged)
- returns SIMPLEFOC_CURRENT_SENSE_INIT_FAILED if the init fails
◆ _readADCVoltageInline()
| float _readADCVoltageInline |
( |
const int |
pinA, |
|
|
const void * |
cs_params |
|
) |
| |
function reading an ADC value and returning the read voltage
- Parameters
-
| pinA | - the arduino pin to be read (it has to be ADC pin) |
| cs_params | -current sense parameter structure - hardware specific |
◆ _readADCVoltageLowSide()
| float _readADCVoltageLowSide |
( |
const int |
pinA, |
|
|
const void * |
cs_params |
|
) |
| |
function reading an ADC value and returning the read voltage
- Parameters
-
| pinA | - the arduino pin to be read (it has to be ADC pin) |
| cs_params | -current sense parameter structure - hardware specific |
◆ _startADC3PinConversionLowSide()
| void _startADC3PinConversionLowSide |
( |
| ) |
|