Configure and control the FlexSense Power Out interface.
More...
Configure and control the FlexSense Power Out interface.
The FlexSense Power Out can supply DC power at 5V, 12V or 24V. The maximum Current supported on this interface is 25mA
- Warning
- To maximise the battery life of your FlexSense, we recommend initialising and de-initialising the Power Out interface each time the job using it is called. This will reduce the idle power usage of your FlexSense.
◆ FLEX_PowerOut
Power Output Voltage Options.
Enumerator |
---|
FLEX_POWER_OUT_24V | set output voltage to 24V
|
FLEX_POWER_OUT_12V | set output voltage to 12V
|
FLEX_POWER_OUT_5V | set output voltage to 5V
|
◆ FLEX_PowerOutInit()
Enable and sets the Output Voltage.
- Note
- De-initialise the Power Output before a job is completed to preserve device power.
- Parameters
-
[in] | Voltage | the required output voltage selected from FLEX_PowerOut . |
- Returns
- FLEX_SUCCESS (0) if succeeded and < 0 if failed.
- Return values
-
-FLEX_ERROR_EALREADY | already initialised |
-FLEX_ERROR_IO_EXPANDER | failed to initialise or configure expander device |
-FLEX_ERROR_EOPNOTSUPP | tried to set invalid power out value |
-FLEX_ERROR_PWM | failed to setup or configure pwm device |
◆ FLEX_PowerOutDeinit()
int FLEX_PowerOutDeinit |
( |
void | | ) |
|
Disables the Output Voltage
- Note
- De-initialise the Power Output before a job is completed to preserve device power.
- Returns
- FLEX_SUCCESS (0) if succeeded and < 0 if failed.
- Return values
-
-FLEX_ERROR_IO_EXPANDER | failed to configure expander device |