Collaboration diagram for Flash Outputs:| I32 | vc_proz_flash_set_current (I32 flashId, I32 reqCurrentmA, I32 limitDurationUs, I32 *setCurrentmA, I32 *maxDurationUs) |
| Sets the Maximum Current Output for VC pro Z FLASH Outputs. More... | |
| #define | VCPROZ_FLASH_MAXCURR_MA ( 1500) |
| Maximum current configurable for flash output pins. | |
| #define | VCPROZ_FLASH_MINCURR_MA ( 150) |
| Minimum current configurable for flash output pins. | |
| #define | VCPROZ_FLASH01_MAXCURRSDY_MA ( 500) |
| For FLASH 0 and FLASH 1 output pins, current above this level will limit the flash duration to VCPROZ_FLASH01_DURTNLIMIT_US. | |
| I32 vc_proz_flash_set_current | ( | I32 | flashId, |
| I32 | reqCurrentmA, | ||
| I32 | limitDurationUs, | ||
| I32 * | setCurrentmA, | ||
| I32 * | maxDurationUs | ||
| ) |
This function sets the maximum current output for VC pro Z FLASH outputs. It also calculates the maximum flash duration according to the FLASH output number:
VCPROZ_FLASH01_MAXCURRSDY_MA level. If not, the maximum flash duration in a duty cycle is given by the value provided at the VCPROZ_FLASH01_DURTNLIMIT_US define.The duty cycle itself guarantees the proper cool down of the connected devices and cannot be turned off. It works the following way:
1 time interval flashing (may be smaller than the maximum flash duration) followed by 8 time intervals cool down phase.
If the current request understeps the minimum current of VCPROZ_FLASH_MINCURR_MA, the current will be set to 0, if the current request exceeds the maximum current of VCPROZ_FLASH_MAXCURR_MA, the function will return with an error.
| flashId | The FLASH output to be configured (0-3). |
| reqCurrentmA | The current request in mA. |
| limitDurationUs | Additional flash duration limitation, no limitation is encoded by setting this value to -1. |
| setCurrentmA | The current really set based on request and limitations. |
| maxDurationUs | The maximum duration really usable based on request and limitations; note the information about the duty cycle. |
| 0 | on Success. |
| ends with -1 | if reqCurrentmA exceeds allowed range. |
| ends with -2 | if resistor of the ledring cannot be read out. |
| ends with -3 | if the ledring limitations cannot be acheived. |
| ends with -4 | if there were errors processing the request. |