The MCUXpresso SDK provides a peripheral driver for the PVT driver module of MCUXpresso SDK devices.
Carrys out a SYSCON reset and enables PVT clock
- Returns
- none
void PVT_SetDelay |
( |
pvt_detector_t |
channel, |
|
|
uint32_t |
delay |
|
) |
| |
Sets delay value on PVT detector channel
- Parameters
-
channel | PVT detector channel |
delay | delay value in steps of 250ps |
- Returns
- none
uint32_t PVT_GetSimplisticRingoCount |
( |
pvt_detector_t |
channel | ) |
|
Turns on the ringo, waits a period of several APB read cycles then returns the ringo count value
- Parameters
-
channel | PVT detector channel |
- Returns
- ringo count value
void PVT_StartRingoCount |
( |
pvt_detector_t |
channel | ) |
|
Starts the ringo counter
- Parameters
-
channel | PVT detector channel |
- Returns
- none
uint32_t PVT_CollectRingoCount |
( |
pvt_detector_t |
channel | ) |
|
Collects the ringo result and switches off the counter
- Parameters
-
channel | PVT detector channel |
- Returns
- ringo count value
void PVT_EnableRegionCount |
( |
pvt_detector_t |
channel | ) |
|
Enables the region counter
- Parameters
-
channel | PVT detector channel |
- Returns
- none
void PVT_DisableRegionCount |
( |
pvt_detector_t |
channel | ) |
|
Disables the region counter
- Parameters
-
channel | PVT detector channel |
- Returns
- none
void PVT_ClearRegionCount |
( |
pvt_detector_t |
channel | ) |
|
Clears the region counter
- Parameters
-
channel | PVT detector channel |
- Returns
- none
uint32_t PVT_GetRegionCount |
( |
pvt_detector_t |
channel | ) |
|
Returns the current specified region counter value
- Parameters
-
channel | PVT detector channel |
- Returns
- region count value
void PVT_AttachISR |
( |
pvt_detector_t |
channel, |
|
|
pvt_Callback_t |
p_isr, |
|
|
bool |
enable |
|
) |
| |
Assigns a callback function for the specified PVT interrupt then enables/disables the relevenat vector
- Parameters
-
channel | PVT detector channel |
- Returns
- region count value