MCUXpresso SDK API Reference Manual  Rev. 0
NXP Semiconductors
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
PVT: JN518X PVT driver

Overview

The MCUXpresso SDK provides a peripheral driver for the PVT driver module of MCUXpresso SDK devices.

Files

file  fsl_pvt.h
 

Functions

void PVT_Init ()
 Initialise PVT Monitor. More...
 
void PVT_SetDelay (pvt_detector_t channel, uint32_t delay)
 Set PVT detectors delay. More...
 
uint32_t PVT_GetSimplisticRingoCount (pvt_detector_t channel)
 get Simplistic ringo count More...
 
void PVT_StartRingoCount (pvt_detector_t channel)
 start ringo count More...
 
uint32_t PVT_CollectRingoCount (pvt_detector_t channel)
 collect ringo count More...
 
void PVT_EnableRegionCount (pvt_detector_t channel)
 enable region count More...
 
void PVT_DisableRegionCount (pvt_detector_t channel)
 disable region count More...
 
void PVT_ClearRegionCount (pvt_detector_t channel)
 clear region count More...
 
uint32_t PVT_GetRegionCount (pvt_detector_t channel)
 Get region count. More...
 
void PVT_AttachISR (pvt_detector_t channel, pvt_Callback_t p_isr, bool enable)
 Attach PVT ISR callback. More...
 

Driver version

#define FSL_PVT_DRIVER_VERSION   (MAKE_VERSION(2, 0, 0))
 PVT driver version 2.0.0. More...
 

Macro Definition Documentation

#define FSL_PVT_DRIVER_VERSION   (MAKE_VERSION(2, 0, 0))

Function Documentation

void PVT_Init ( )

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
channelPVT detector channel
delaydelay 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
channelPVT detector channel
Returns
ringo count value
void PVT_StartRingoCount ( pvt_detector_t  channel)

Starts the ringo counter

Parameters
channelPVT detector channel
Returns
none
uint32_t PVT_CollectRingoCount ( pvt_detector_t  channel)

Collects the ringo result and switches off the counter

Parameters
channelPVT detector channel
Returns
ringo count value
void PVT_EnableRegionCount ( pvt_detector_t  channel)

Enables the region counter

Parameters
channelPVT detector channel
Returns
none
void PVT_DisableRegionCount ( pvt_detector_t  channel)

Disables the region counter

Parameters
channelPVT detector channel
Returns
none
void PVT_ClearRegionCount ( pvt_detector_t  channel)

Clears the region counter

Parameters
channelPVT detector channel
Returns
none
uint32_t PVT_GetRegionCount ( pvt_detector_t  channel)

Returns the current specified region counter value

Parameters
channelPVT 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
channelPVT detector channel
Returns
region count value