2022-08-23 15:00:33 +00:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
< html xmlns = "http://www.w3.org/1999/xhtml" >
< head >
< meta http-equiv = "Content-Type" content = "text/xhtml;charset=UTF-8" / >
< meta http-equiv = "X-UA-Compatible" content = "IE=9" / >
< meta name = "generator" content = "Doxygen 1.8.5" / >
2024-03-15 14:23:36 +00:00
< title > MCUXpresso SDK API Reference Manual: PIT: Periodic Interrupt Timer< / title >
2022-08-23 15:00:33 +00:00
< link href = "tabs.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "jquery.js" > < / script >
< script type = "text/javascript" src = "dynsections.js" > < / script >
< link href = "navtree.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "resize.js" > < / script >
< script type = "text/javascript" src = "navtree.js" > < / script >
< script type = "text/javascript" >
$(document).ready(initResizable);
$(window).load(resizeHeight);
< / script >
< link href = "search/search.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "search/search.js" > < / script >
< script type = "text/javascript" >
$(document).ready(function() { searchBox.OnSelectItem(0); });
< / script >
< link href = "doxygen.css" rel = "stylesheet" type = "text/css" / >
< link href = "customdoxygen.css" rel = "stylesheet" type = "text/css" / >
< / head >
< body >
< div id = "top" > <!-- do not remove this div, it is closed by doxygen! -->
< div id = "titlearea" >
< table cellspacing = "0" cellpadding = "0" >
< tbody >
< tr style = "height: 56px;" >
< td id = "projectlogo" > < img alt = "Logo" src = "fs_logo.gif" / > < / td >
< td style = "padding-left: 0.5em;" >
< div id = "projectname" > MCUXpresso SDK API Reference Manual
2024-03-15 14:23:36 +00:00
  < span id = "projectnumber" > Rev 2.15.000< / span >
2022-08-23 15:00:33 +00:00
< / div >
< div id = "projectbrief" > NXP Semiconductors< / div >
< / td >
< / tr >
< / tbody >
< / table >
< / div >
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
< script type = "text/javascript" >
var searchBox = new SearchBox("searchBox", "search",false,'Search');
< / script >
< div id = "navrow1" class = "tabs" >
< ul class = "tablist" >
< li > < a href = "index.html" > < span > Main  Page< / span > < / a > < / li >
< li > < a href = "pages.html" > < span > Related  Pages< / span > < / a > < / li >
< li > < a href = "modules.html" > < span > API  Reference< / span > < / a > < / li >
< li >
< div id = "MSearchBox" class = "MSearchBoxInactive" >
< span class = "left" >
< img id = "MSearchSelect" src = "search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
< input type = "text" id = "MSearchField" value = "Search" accesskey = "S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
< / span > < span class = "right" >
< a id = "MSearchClose" href = "javascript:searchBox.CloseResultsWindow()" > < img id = "MSearchCloseImg" border = "0" src = "search/close.png" alt = "" / > < / a >
< / span >
< / div >
< / li >
< / ul >
< / div >
< / div > <!-- top -->
< div id = "side-nav" class = "ui-resizable side-nav-resizable" >
< div id = "nav-tree" >
< div id = "nav-tree-contents" >
< div id = "nav-sync" class = "sync" > < / div >
< / div >
< / div >
< div id = "splitbar" style = "-moz-user-select:none;"
class="ui-resizable-handle">
< / div >
< / div >
< script type = "text/javascript" >
$(document).ready(function(){initNavTree('a00057.html','');});
< / script >
< div id = "doc-content" >
<!-- window showing the filter options -->
< div id = "MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
< a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(0)" > < span class = "SelectionMark" >   < / span > All< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(1)" > < span class = "SelectionMark" >   < / span > Data Structures< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(2)" > < span class = "SelectionMark" >   < / span > Functions< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(3)" > < span class = "SelectionMark" >   < / span > Variables< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(4)" > < span class = "SelectionMark" >   < / span > Typedefs< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(5)" > < span class = "SelectionMark" >   < / span > Enumerations< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(6)" > < span class = "SelectionMark" >   < / span > Enumerator< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(7)" > < span class = "SelectionMark" >   < / span > Groups< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(8)" > < span class = "SelectionMark" >   < / span > Pages< / a > < / div >
<!-- iframe showing the search results (closed by default) -->
< div id = "MSearchResultsWindow" >
< iframe src = "javascript:void(0)" frameborder = "0"
name="MSearchResults" id="MSearchResults">
< / iframe >
< / div >
< div class = "header" >
< div class = "summary" >
< a href = "#nested-classes" > Data Structures< / a > |
2024-03-15 14:23:36 +00:00
< a href = "#typedef-members" > Typedefs< / a > |
2023-08-31 15:30:31 +00:00
< a href = "#enum-members" > Enumerations< / a > |
< a href = "#func-members" > Functions< / a > < / div >
2022-08-23 15:00:33 +00:00
< div class = "headertitle" >
2024-03-15 14:23:36 +00:00
< div class = "title" > PIT: Periodic Interrupt Timer< / div > < / div >
2022-08-23 15:00:33 +00:00
< / div > <!-- header -->
< div class = "contents" >
< a name = "details" id = "details" > < / a > < h2 class = "groupheader" > Overview< / h2 >
2024-03-15 14:23:36 +00:00
< p > The MCUXpresso SDK provides a driver for the Periodic Interrupt Timer (PIT) of MCUXpresso SDK devices.< / p >
< h1 > < a class = "anchor" id = "PITFunc" > < / a >
Function groups< / h1 >
< p > The PIT driver supports operating the module as a time counter.< / p >
< h2 > < a class = "anchor" id = "PITInit" > < / a >
2023-08-31 15:30:31 +00:00
Initialization and deinitialization< / h2 >
2024-03-15 14:23:36 +00:00
< p > The function < a class = "el" href = "a00057.html#ga51eb6396276b3f1ec564bd1879c97c06" title = "Ungates the PIT clock, enables the PIT module, and configures the peripheral for basic operations..." > PIT_Init()< / a > initializes the PIT with specified configurations. The function < a class = "el" href = "a00057.html#gae7dc830a1a71ec7597ba78ccc76abfb6" title = "Fills in the PIT configuration structure with the default settings. " > PIT_GetDefaultConfig()< / a > gets the default configurations. The initialization function configures the PIT operation in debug mode.< / p >
< p > The function < a class = "el" href = "a00057.html#gabe6831cfb502ca058f15fcf065cd13de" title = "Enables or disables chaining a timer with the previous timer. " > PIT_SetTimerChainMode()< / a > configures the chain mode operation of each PIT channel.< / p >
< p > The function < a class = "el" href = "a00057.html#ga1f9b6d5e9e463844f85e31102458c1fc" title = "Gates the PIT clock and disables the PIT module. " > PIT_Deinit()< / a > disables the PIT timers and disables the module clock.< / p >
< h2 > < a class = "anchor" id = "PITTimerPeriodOperation" > < / a >
Timer period Operations< / h2 >
< p > The function PITR_SetTimerPeriod() sets the timer period in units of count. Timers begin counting down from the value set by this function until it reaches 0.< / p >
< p > The function < a class = "el" href = "a00057.html#ga1ffacaa2e8582f59194436ebc6de2db9" title = "Reads the current timer counting value. " > PIT_GetCurrentTimerCount()< / a > reads the current timer counting value. This function returns the real-time timer counting value, in a range from 0 to a timer period.< / p >
< p > The timer period operation functions takes the count value in ticks. Users can call the utility macros provided in fsl_common.h to convert to microseconds or milliseconds.< / p >
< h2 > < a class = "anchor" id = "PITStartStopOperation" > < / a >
Start and Stop timer operations< / h2 >
< p > The function < a class = "el" href = "a00057.html#ga3f6b9762079e4ce2de6799e030b14964" title = "Starts the timer counting. " > PIT_StartTimer()< / a > starts the timer counting. After calling this function, the timer loads the period value set earlier via the PIT_SetPeriod() function and starts counting down to 0. When the timer reaches 0, it generates a trigger pulse and sets the timeout interrupt flag.< / p >
< p > The function < a class = "el" href = "a00057.html#ga32f1b8ca9cf0fc82ef192890e97899b8" title = "Stops the timer counting. " > PIT_StopTimer()< / a > stops the timer counting.< / p >
< h2 > < a class = "anchor" id = "PITStatus" > < / a >
2023-08-31 15:30:31 +00:00
Status< / h2 >
2024-03-15 14:23:36 +00:00
< p > Provides functions to get and clear the PIT status.< / p >
< h2 > < a class = "anchor" id = "PITInterrupt" > < / a >
2023-08-31 15:30:31 +00:00
Interrupt< / h2 >
2024-03-15 14:23:36 +00:00
< p > Provides functions to enable/disable PIT interrupts and get current enabled interrupts.< / p >
< h1 > < a class = "anchor" id = "PITUseCase" > < / a >
2023-08-31 15:30:31 +00:00
Typical use case< / h1 >
2024-03-15 14:23:36 +00:00
< h2 > < a class = "anchor" id = "PITTick" > < / a >
PIT tick example< / h2 >
< p > Updates the PIT period and toggles an LED periodically. Refer to the driver examples codes located at < SDK_ROOT> /boards/< BOARD> /driver_examples/pit < / p >
2022-08-23 15:00:33 +00:00
< table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "nested-classes" > < / a >
Data Structures< / h2 > < / td > < / tr >
2024-03-15 14:23:36 +00:00
< tr class = "memitem:a00440" > < td class = "memItemLeft" align = "right" valign = "top" > struct   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "a00057.html#a00440" > _pit_config< / a > < / td > < / tr >
< tr class = "memdesc:a00440" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > PIT configuration structure. < a href = "a00057.html#a00440" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:a00440" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2022-08-23 15:00:33 +00:00
< / table > < table class = "memberdecls" >
2024-03-15 14:23:36 +00:00
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "typedef-members" > < / a >
Typedefs< / h2 > < / td > < / tr >
< tr class = "memitem:gadda15e462fb93f2eea6237cab74dc7ca" > < td class = "memItemLeft" align = "right" valign = "top" > typedef enum < a class = "el" href = "a00057.html#ga128823c7ae3f2a6e19376b663ea56abd" > _pit_chnl< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "a00057.html#gadda15e462fb93f2eea6237cab74dc7ca" > pit_chnl_t< / a > < / td > < / tr >
< tr class = "memdesc:gadda15e462fb93f2eea6237cab74dc7ca" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > List of PIT channels. < a href = "#gadda15e462fb93f2eea6237cab74dc7ca" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:gadda15e462fb93f2eea6237cab74dc7ca" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:gae6b70a879fb84816fb40294c9e42846d" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "gae6b70a879fb84816fb40294c9e42846d" > < / a >
typedef enum < a class = "el" href = "a00057.html#ga3c078eb2e2c77f02f1d386ec64660674" > _pit_interrupt_enable< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "a00057.html#gae6b70a879fb84816fb40294c9e42846d" > pit_interrupt_enable_t< / a > < / td > < / tr >
< tr class = "memdesc:gae6b70a879fb84816fb40294c9e42846d" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > List of PIT interrupts. < br / > < / td > < / tr >
< tr class = "separator:gae6b70a879fb84816fb40294c9e42846d" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ga8f00d842bb7b1921ac26313e13dc75ba" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "ga8f00d842bb7b1921ac26313e13dc75ba" > < / a >
typedef enum < a class = "el" href = "a00057.html#ga8bd83b1eb625d5f5e9b69d1c78b5ce63" > _pit_status_flags< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "a00057.html#ga8f00d842bb7b1921ac26313e13dc75ba" > pit_status_flags_t< / a > < / td > < / tr >
< tr class = "memdesc:ga8f00d842bb7b1921ac26313e13dc75ba" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > List of PIT status flags. < br / > < / td > < / tr >
< tr class = "separator:ga8f00d842bb7b1921ac26313e13dc75ba" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ga767a81b02a29e189c563188dd467a67b" > < td class = "memItemLeft" align = "right" valign = "top" > typedef struct < a class = "el" href = "a00057.html#a00440" > _pit_config< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "a00057.html#ga767a81b02a29e189c563188dd467a67b" > pit_config_t< / a > < / td > < / tr >
< tr class = "memdesc:ga767a81b02a29e189c563188dd467a67b" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > PIT configuration structure. < a href = "#ga767a81b02a29e189c563188dd467a67b" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:ga767a81b02a29e189c563188dd467a67b" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2022-08-23 15:00:33 +00:00
< / table > < table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "enum-members" > < / a >
Enumerations< / h2 > < / td > < / tr >
2024-03-15 14:23:36 +00:00
< tr class = "memitem:ga128823c7ae3f2a6e19376b663ea56abd" > < td class = "memItemLeft" align = "right" valign = "top" > enum   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "a00057.html#ga128823c7ae3f2a6e19376b663ea56abd" > _pit_chnl< / a > { < br / >
    < a class = "el" href = "a00057.html#gga128823c7ae3f2a6e19376b663ea56abda771abd65f098ad80d8f693e0b97a7e76" > kPIT_Chnl_0< / a > = 0U,
2023-08-31 15:30:31 +00:00
< br / >
2024-03-15 14:23:36 +00:00
    < a class = "el" href = "a00057.html#gga128823c7ae3f2a6e19376b663ea56abdac7733ad1c04ea00e2f7890a3c737cb7b" > kPIT_Chnl_1< / a > ,
2023-08-31 15:30:31 +00:00
< br / >
2024-03-15 14:23:36 +00:00
    < a class = "el" href = "a00057.html#gga128823c7ae3f2a6e19376b663ea56abdad12ab59290845fcaebd2d9f01ae2f561" > kPIT_Chnl_2< / a > ,
2023-08-31 15:30:31 +00:00
< br / >
2024-03-15 14:23:36 +00:00
    < a class = "el" href = "a00057.html#gga128823c7ae3f2a6e19376b663ea56abda4666db554c10bce47cfa628e8bb4ab93" > kPIT_Chnl_3< / a >
2022-08-23 15:00:33 +00:00
< br / >
2023-08-31 15:30:31 +00:00
}< / td > < / tr >
2024-03-15 14:23:36 +00:00
< tr class = "memdesc:ga128823c7ae3f2a6e19376b663ea56abd" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > List of PIT channels. < a href = "a00057.html#ga128823c7ae3f2a6e19376b663ea56abd" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:ga128823c7ae3f2a6e19376b663ea56abd" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ga3c078eb2e2c77f02f1d386ec64660674" > < td class = "memItemLeft" align = "right" valign = "top" > enum   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "a00057.html#ga3c078eb2e2c77f02f1d386ec64660674" > _pit_interrupt_enable< / a > { < a class = "el" href = "a00057.html#gga3c078eb2e2c77f02f1d386ec64660674a98c517b7246326afb50c93fe515916e0" > kPIT_TimerInterruptEnable< / a > = PIT_TCTRL_TIE_MASK
2022-08-23 15:00:33 +00:00
}< / td > < / tr >
2024-03-15 14:23:36 +00:00
< tr class = "memdesc:ga3c078eb2e2c77f02f1d386ec64660674" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > List of PIT interrupts. < a href = "a00057.html#ga3c078eb2e2c77f02f1d386ec64660674" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:ga3c078eb2e2c77f02f1d386ec64660674" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ga8bd83b1eb625d5f5e9b69d1c78b5ce63" > < td class = "memItemLeft" align = "right" valign = "top" > enum   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "a00057.html#ga8bd83b1eb625d5f5e9b69d1c78b5ce63" > _pit_status_flags< / a > { < a class = "el" href = "a00057.html#gga8bd83b1eb625d5f5e9b69d1c78b5ce63a6792e6d30409cb5054b3f12c4e735cc0" > kPIT_TimerFlag< / a > = PIT_TFLG_TIF_MASK
2022-08-23 15:00:33 +00:00
}< / td > < / tr >
2024-03-15 14:23:36 +00:00
< tr class = "memdesc:ga8bd83b1eb625d5f5e9b69d1c78b5ce63" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > List of PIT status flags. < a href = "a00057.html#ga8bd83b1eb625d5f5e9b69d1c78b5ce63" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:ga8bd83b1eb625d5f5e9b69d1c78b5ce63" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2023-08-31 15:30:31 +00:00
< / table > < table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "func-members" > < / a >
Functions< / h2 > < / td > < / tr >
2024-03-15 14:23:36 +00:00
< tr class = "memitem:gaadfcf653873f3c881b316f6b9d9ca79c" > < td class = "memItemLeft" align = "right" valign = "top" > uint64_t  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "a00057.html#gaadfcf653873f3c881b316f6b9d9ca79c" > PIT_GetLifetimeTimerCount< / a > (PIT_Type *base)< / td > < / tr >
< tr class = "memdesc:gaadfcf653873f3c881b316f6b9d9ca79c" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Reads the current lifetime counter value. < a href = "#gaadfcf653873f3c881b316f6b9d9ca79c" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:gaadfcf653873f3c881b316f6b9d9ca79c" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2022-08-23 15:00:33 +00:00
< / table > < table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "member-group" > < / a >
Driver version< / h2 > < / td > < / tr >
2024-03-15 14:23:36 +00:00
< tr class = "memitem:ga55a6c6a9b7ee34302c636f9496d0ea2f" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "ga55a6c6a9b7ee34302c636f9496d0ea2f" > < / a >
#define  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "a00057.html#ga55a6c6a9b7ee34302c636f9496d0ea2f" > FSL_PIT_DRIVER_VERSION< / a >       (< a class = "el" href = "a00260.html#ga812138aa3315b0c6953c1a26130bcc37" > MAKE_VERSION< / a > (2, 0, 4))< / td > < / tr >
< tr class = "memdesc:ga55a6c6a9b7ee34302c636f9496d0ea2f" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > PIT Driver Version 2.0.4. < br / > < / td > < / tr >
< tr class = "separator:ga55a6c6a9b7ee34302c636f9496d0ea2f" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2022-08-23 15:00:33 +00:00
< / table > < table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "member-group" > < / a >
Initialization and deinitialization< / h2 > < / td > < / tr >
2024-03-15 14:23:36 +00:00
< tr class = "memitem:ga51eb6396276b3f1ec564bd1879c97c06" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "a00057.html#ga51eb6396276b3f1ec564bd1879c97c06" > PIT_Init< / a > (PIT_Type *base, const < a class = "el" href = "a00057.html#ga767a81b02a29e189c563188dd467a67b" > pit_config_t< / a > *config)< / td > < / tr >
< tr class = "memdesc:ga51eb6396276b3f1ec564bd1879c97c06" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Ungates the PIT clock, enables the PIT module, and configures the peripheral for basic operations. < a href = "#ga51eb6396276b3f1ec564bd1879c97c06" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:ga51eb6396276b3f1ec564bd1879c97c06" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ga1f9b6d5e9e463844f85e31102458c1fc" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "a00057.html#ga1f9b6d5e9e463844f85e31102458c1fc" > PIT_Deinit< / a > (PIT_Type *base)< / td > < / tr >
< tr class = "memdesc:ga1f9b6d5e9e463844f85e31102458c1fc" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Gates the PIT clock and disables the PIT module. < a href = "#ga1f9b6d5e9e463844f85e31102458c1fc" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:ga1f9b6d5e9e463844f85e31102458c1fc" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:gae7dc830a1a71ec7597ba78ccc76abfb6" > < td class = "memItemLeft" align = "right" valign = "top" > static void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "a00057.html#gae7dc830a1a71ec7597ba78ccc76abfb6" > PIT_GetDefaultConfig< / a > (< a class = "el" href = "a00057.html#ga767a81b02a29e189c563188dd467a67b" > pit_config_t< / a > *config)< / td > < / tr >
< tr class = "memdesc:gae7dc830a1a71ec7597ba78ccc76abfb6" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Fills in the PIT configuration structure with the default settings. < a href = "#gae7dc830a1a71ec7597ba78ccc76abfb6" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:gae7dc830a1a71ec7597ba78ccc76abfb6" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:gabe6831cfb502ca058f15fcf065cd13de" > < td class = "memItemLeft" align = "right" valign = "top" > static void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "a00057.html#gabe6831cfb502ca058f15fcf065cd13de" > PIT_SetTimerChainMode< / a > (PIT_Type *base, < a class = "el" href = "a00057.html#gadda15e462fb93f2eea6237cab74dc7ca" > pit_chnl_t< / a > channel, bool enable)< / td > < / tr >
< tr class = "memdesc:gabe6831cfb502ca058f15fcf065cd13de" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Enables or disables chaining a timer with the previous timer. < a href = "#gabe6831cfb502ca058f15fcf065cd13de" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:gabe6831cfb502ca058f15fcf065cd13de" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2022-08-23 15:00:33 +00:00
< / table > < table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "member-group" > < / a >
2024-03-15 14:23:36 +00:00
Interrupt Interface< / h2 > < / td > < / tr >
< tr class = "memitem:ga157360547de18885d6a783d2b510d87e" > < td class = "memItemLeft" align = "right" valign = "top" > static void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "a00057.html#ga157360547de18885d6a783d2b510d87e" > PIT_EnableInterrupts< / a > (PIT_Type *base, < a class = "el" href = "a00057.html#gadda15e462fb93f2eea6237cab74dc7ca" > pit_chnl_t< / a > channel, uint32_t mask)< / td > < / tr >
< tr class = "memdesc:ga157360547de18885d6a783d2b510d87e" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Enables the selected PIT interrupts. < a href = "#ga157360547de18885d6a783d2b510d87e" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:ga157360547de18885d6a783d2b510d87e" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ga12d03e0905453194bd5c3560996eb976" > < td class = "memItemLeft" align = "right" valign = "top" > static void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "a00057.html#ga12d03e0905453194bd5c3560996eb976" > PIT_DisableInterrupts< / a > (PIT_Type *base, < a class = "el" href = "a00057.html#gadda15e462fb93f2eea6237cab74dc7ca" > pit_chnl_t< / a > channel, uint32_t mask)< / td > < / tr >
< tr class = "memdesc:ga12d03e0905453194bd5c3560996eb976" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Disables the selected PIT interrupts. < a href = "#ga12d03e0905453194bd5c3560996eb976" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:ga12d03e0905453194bd5c3560996eb976" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ga9ecb3ef65be040e9002a0277b13bb8e3" > < td class = "memItemLeft" align = "right" valign = "top" > static uint32_t  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "a00057.html#ga9ecb3ef65be040e9002a0277b13bb8e3" > PIT_GetEnabledInterrupts< / a > (PIT_Type *base, < a class = "el" href = "a00057.html#gadda15e462fb93f2eea6237cab74dc7ca" > pit_chnl_t< / a > channel)< / td > < / tr >
< tr class = "memdesc:ga9ecb3ef65be040e9002a0277b13bb8e3" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Gets the enabled PIT interrupts. < a href = "#ga9ecb3ef65be040e9002a0277b13bb8e3" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:ga9ecb3ef65be040e9002a0277b13bb8e3" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2022-08-23 15:00:33 +00:00
< / table > < table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "member-group" > < / a >
2024-03-15 14:23:36 +00:00
Status Interface< / h2 > < / td > < / tr >
< tr class = "memitem:ga503619dd8ee2244edd12da3e27fa13e2" > < td class = "memItemLeft" align = "right" valign = "top" > static uint32_t  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "a00057.html#ga503619dd8ee2244edd12da3e27fa13e2" > PIT_GetStatusFlags< / a > (PIT_Type *base, < a class = "el" href = "a00057.html#gadda15e462fb93f2eea6237cab74dc7ca" > pit_chnl_t< / a > channel)< / td > < / tr >
< tr class = "memdesc:ga503619dd8ee2244edd12da3e27fa13e2" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Gets the PIT status flags. < a href = "#ga503619dd8ee2244edd12da3e27fa13e2" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:ga503619dd8ee2244edd12da3e27fa13e2" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:gadc0f51c2e1b91fb0c529d752b71477e6" > < td class = "memItemLeft" align = "right" valign = "top" > static void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "a00057.html#gadc0f51c2e1b91fb0c529d752b71477e6" > PIT_ClearStatusFlags< / a > (PIT_Type *base, < a class = "el" href = "a00057.html#gadda15e462fb93f2eea6237cab74dc7ca" > pit_chnl_t< / a > channel, uint32_t mask)< / td > < / tr >
< tr class = "memdesc:gadc0f51c2e1b91fb0c529d752b71477e6" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Clears the PIT status flags. < a href = "#gadc0f51c2e1b91fb0c529d752b71477e6" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:gadc0f51c2e1b91fb0c529d752b71477e6" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2022-08-23 15:00:33 +00:00
< / table > < table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "member-group" > < / a >
2024-03-15 14:23:36 +00:00
Read and Write the timer period< / h2 > < / td > < / tr >
< tr class = "memitem:ga944e9c9bd6848d861a9eb17b617d72f7" > < td class = "memItemLeft" align = "right" valign = "top" > static void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "a00057.html#ga944e9c9bd6848d861a9eb17b617d72f7" > PIT_SetTimerPeriod< / a > (PIT_Type *base, < a class = "el" href = "a00057.html#gadda15e462fb93f2eea6237cab74dc7ca" > pit_chnl_t< / a > channel, uint32_t count)< / td > < / tr >
< tr class = "memdesc:ga944e9c9bd6848d861a9eb17b617d72f7" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Sets the timer period in units of count. < a href = "#ga944e9c9bd6848d861a9eb17b617d72f7" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:ga944e9c9bd6848d861a9eb17b617d72f7" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ga1ffacaa2e8582f59194436ebc6de2db9" > < td class = "memItemLeft" align = "right" valign = "top" > static uint32_t  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "a00057.html#ga1ffacaa2e8582f59194436ebc6de2db9" > PIT_GetCurrentTimerCount< / a > (PIT_Type *base, < a class = "el" href = "a00057.html#gadda15e462fb93f2eea6237cab74dc7ca" > pit_chnl_t< / a > channel)< / td > < / tr >
< tr class = "memdesc:ga1ffacaa2e8582f59194436ebc6de2db9" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Reads the current timer counting value. < a href = "#ga1ffacaa2e8582f59194436ebc6de2db9" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:ga1ffacaa2e8582f59194436ebc6de2db9" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2022-08-23 15:00:33 +00:00
< / table > < table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "member-group" > < / a >
2023-08-31 15:30:31 +00:00
Timer Start and Stop< / h2 > < / td > < / tr >
2024-03-15 14:23:36 +00:00
< tr class = "memitem:ga3f6b9762079e4ce2de6799e030b14964" > < td class = "memItemLeft" align = "right" valign = "top" > static void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "a00057.html#ga3f6b9762079e4ce2de6799e030b14964" > PIT_StartTimer< / a > (PIT_Type *base, < a class = "el" href = "a00057.html#gadda15e462fb93f2eea6237cab74dc7ca" > pit_chnl_t< / a > channel)< / td > < / tr >
< tr class = "memdesc:ga3f6b9762079e4ce2de6799e030b14964" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Starts the timer counting. < a href = "#ga3f6b9762079e4ce2de6799e030b14964" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:ga3f6b9762079e4ce2de6799e030b14964" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ga32f1b8ca9cf0fc82ef192890e97899b8" > < td class = "memItemLeft" align = "right" valign = "top" > static void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "a00057.html#ga32f1b8ca9cf0fc82ef192890e97899b8" > PIT_StopTimer< / a > (PIT_Type *base, < a class = "el" href = "a00057.html#gadda15e462fb93f2eea6237cab74dc7ca" > pit_chnl_t< / a > channel)< / td > < / tr >
< tr class = "memdesc:ga32f1b8ca9cf0fc82ef192890e97899b8" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Stops the timer counting. < a href = "#ga32f1b8ca9cf0fc82ef192890e97899b8" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:ga32f1b8ca9cf0fc82ef192890e97899b8" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2022-08-23 15:00:33 +00:00
< / table >
< hr / > < h2 class = "groupheader" > Data Structure Documentation< / h2 >
2024-03-15 14:23:36 +00:00
< a name = "a00440" id = "a00440" > < / a >
2022-08-23 15:00:33 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2024-03-15 14:23:36 +00:00
< td class = "memname" > struct _pit_config< / td >
2022-08-23 15:00:33 +00:00
< / tr >
< / table >
< / div > < div class = "memdoc" >
2024-03-15 14:23:36 +00:00
< div class = "textblock" > < p > This structure holds the configuration settings for the PIT peripheral. To initialize this structure to reasonable defaults, call the < a class = "el" href = "a00057.html#gae7dc830a1a71ec7597ba78ccc76abfb6" title = "Fills in the PIT configuration structure with the default settings. " > PIT_GetDefaultConfig()< / a > function and pass a pointer to your config structure instance.< / p >
< p > The configuration structure can be made constant so it resides in flash. < / p >
2023-08-31 15:30:31 +00:00
< / div > < table class = "memberdecls" >
2022-08-23 15:00:33 +00:00
< tr > < td colspan = "2" > < h3 > Data Fields< / h3 > < / td > < / tr >
2024-03-15 14:23:36 +00:00
< tr class = "memitem:abb3a16f49f2b78289794faacfb1f3a80" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "abb3a16f49f2b78289794faacfb1f3a80" > < / a >
bool  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "a00057.html#abb3a16f49f2b78289794faacfb1f3a80" > enableRunInDebug< / a > < / td > < / tr >
< tr class = "memdesc:abb3a16f49f2b78289794faacfb1f3a80" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > true: Timers run in debug mode; false: Timers stop in debug mode < br / > < / td > < / tr >
< tr class = "separator:abb3a16f49f2b78289794faacfb1f3a80" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2022-08-23 15:00:33 +00:00
< / table >
< / div >
< / div >
2024-03-15 14:23:36 +00:00
< h2 class = "groupheader" > Typedef Documentation< / h2 >
< a class = "anchor" id = "gadda15e462fb93f2eea6237cab74dc7ca" > < / a >
2022-08-23 15:00:33 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2024-03-15 14:23:36 +00:00
< td class = "memname" > typedef enum < a class = "el" href = "a00057.html#ga128823c7ae3f2a6e19376b663ea56abd" > _pit_chnl< / a > < a class = "el" href = "a00057.html#gadda15e462fb93f2eea6237cab74dc7ca" > pit_chnl_t< / a > < / td >
2022-08-23 15:00:33 +00:00
< / tr >
< / table >
< / div > < div class = "memdoc" >
2024-03-15 14:23:36 +00:00
< dl class = "section note" > < dt > Note< / dt > < dd > Actual number of available channels is SoC dependent < / dd > < / dl >
2022-08-23 15:00:33 +00:00
< / div >
< / div >
2024-03-15 14:23:36 +00:00
< a class = "anchor" id = "ga767a81b02a29e189c563188dd467a67b" > < / a >
2022-08-23 15:00:33 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2024-03-15 14:23:36 +00:00
< td class = "memname" > typedef struct < a class = "el" href = "a00057.html#a00440" > _pit_config< / a > < a class = "el" href = "a00057.html#ga767a81b02a29e189c563188dd467a67b" > pit_config_t< / a > < / td >
2022-08-23 15:00:33 +00:00
< / tr >
< / table >
< / div > < div class = "memdoc" >
2024-03-15 14:23:36 +00:00
< p > This structure holds the configuration settings for the PIT peripheral. To initialize this structure to reasonable defaults, call the < a class = "el" href = "a00057.html#gae7dc830a1a71ec7597ba78ccc76abfb6" title = "Fills in the PIT configuration structure with the default settings. " > PIT_GetDefaultConfig()< / a > function and pass a pointer to your config structure instance.< / p >
< p > The configuration structure can be made constant so it resides in flash. < / p >
2022-08-23 15:00:33 +00:00
< / div >
< / div >
2023-08-31 15:30:31 +00:00
< h2 class = "groupheader" > Enumeration Type Documentation< / h2 >
2024-03-15 14:23:36 +00:00
< a class = "anchor" id = "ga128823c7ae3f2a6e19376b663ea56abd" > < / a >
2022-08-23 15:00:33 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2024-03-15 14:23:36 +00:00
< td class = "memname" > enum < a class = "el" href = "a00057.html#ga128823c7ae3f2a6e19376b663ea56abd" > _pit_chnl< / a > < / td >
2022-08-23 15:00:33 +00:00
< / tr >
< / table >
< / div > < div class = "memdoc" >
2024-03-15 14:23:36 +00:00
< dl class = "section note" > < dt > Note< / dt > < dd > Actual number of available channels is SoC dependent < / dd > < / dl >
2023-08-31 15:30:31 +00:00
< table class = "fieldtable" >
2024-03-15 14:23:36 +00:00
< tr > < th colspan = "2" > Enumerator< / th > < / tr > < tr > < td class = "fieldname" > < em > < a class = "anchor" id = "gga128823c7ae3f2a6e19376b663ea56abda771abd65f098ad80d8f693e0b97a7e76" > < / a > kPIT_Chnl_0< / em > < / td > < td class = "fielddoc" >
< p > PIT channel number 0. < / p >
2023-08-31 15:30:31 +00:00
< / td > < / tr >
2024-03-15 14:23:36 +00:00
< tr > < td class = "fieldname" > < em > < a class = "anchor" id = "gga128823c7ae3f2a6e19376b663ea56abdac7733ad1c04ea00e2f7890a3c737cb7b" > < / a > kPIT_Chnl_1< / em > < / td > < td class = "fielddoc" >
< p > PIT channel number 1. < / p >
2023-08-31 15:30:31 +00:00
< / td > < / tr >
2024-03-15 14:23:36 +00:00
< tr > < td class = "fieldname" > < em > < a class = "anchor" id = "gga128823c7ae3f2a6e19376b663ea56abdad12ab59290845fcaebd2d9f01ae2f561" > < / a > kPIT_Chnl_2< / em > < / td > < td class = "fielddoc" >
< p > PIT channel number 2. < / p >
2023-08-31 15:30:31 +00:00
< / td > < / tr >
2024-03-15 14:23:36 +00:00
< tr > < td class = "fieldname" > < em > < a class = "anchor" id = "gga128823c7ae3f2a6e19376b663ea56abda4666db554c10bce47cfa628e8bb4ab93" > < / a > kPIT_Chnl_3< / em > < / td > < td class = "fielddoc" >
< p > PIT channel number 3. < / p >
2023-08-31 15:30:31 +00:00
< / td > < / tr >
2022-08-23 15:00:33 +00:00
< / table >
< / div >
< / div >
2024-03-15 14:23:36 +00:00
< a class = "anchor" id = "ga3c078eb2e2c77f02f1d386ec64660674" > < / a >
2022-08-23 15:00:33 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2024-03-15 14:23:36 +00:00
< td class = "memname" > enum < a class = "el" href = "a00057.html#ga3c078eb2e2c77f02f1d386ec64660674" > _pit_interrupt_enable< / a > < / td >
2022-08-23 15:00:33 +00:00
< / tr >
< / table >
< / div > < div class = "memdoc" >
2024-03-15 14:23:36 +00:00
< table class = "fieldtable" >
< tr > < th colspan = "2" > Enumerator< / th > < / tr > < tr > < td class = "fieldname" > < em > < a class = "anchor" id = "gga3c078eb2e2c77f02f1d386ec64660674a98c517b7246326afb50c93fe515916e0" > < / a > kPIT_TimerInterruptEnable< / em > < / td > < td class = "fielddoc" >
< p > Timer interrupt enable. < / p >
< / td > < / tr >
< / table >
2023-08-31 15:30:31 +00:00
< / div >
< / div >
2024-03-15 14:23:36 +00:00
< a class = "anchor" id = "ga8bd83b1eb625d5f5e9b69d1c78b5ce63" > < / a >
2023-08-31 15:30:31 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
2022-08-23 15:00:33 +00:00
< tr >
2024-03-15 14:23:36 +00:00
< td class = "memname" > enum < a class = "el" href = "a00057.html#ga8bd83b1eb625d5f5e9b69d1c78b5ce63" > _pit_status_flags< / a > < / td >
2022-08-23 15:00:33 +00:00
< / tr >
< / table >
< / div > < div class = "memdoc" >
2024-03-15 14:23:36 +00:00
< table class = "fieldtable" >
< tr > < th colspan = "2" > Enumerator< / th > < / tr > < tr > < td class = "fieldname" > < em > < a class = "anchor" id = "gga8bd83b1eb625d5f5e9b69d1c78b5ce63a6792e6d30409cb5054b3f12c4e735cc0" > < / a > kPIT_TimerFlag< / em > < / td > < td class = "fielddoc" >
< p > Timer flag. < / p >
< / td > < / tr >
< / table >
2022-08-23 15:00:33 +00:00
< / div >
< / div >
2024-03-15 14:23:36 +00:00
< h2 class = "groupheader" > Function Documentation< / h2 >
< a class = "anchor" id = "ga51eb6396276b3f1ec564bd1879c97c06" > < / a >
2022-08-23 15:00:33 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2024-03-15 14:23:36 +00:00
< td class = "memname" > void PIT_Init < / td >
2022-08-23 15:00:33 +00:00
< td > (< / td >
2024-03-15 14:23:36 +00:00
< td class = "paramtype" > PIT_Type *  < / td >
2022-08-23 15:00:33 +00:00
< td class = "paramname" > < em > base< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
2024-03-15 14:23:36 +00:00
< td class = "paramtype" > const < a class = "el" href = "a00057.html#ga767a81b02a29e189c563188dd467a67b" > pit_config_t< / a > *  < / td >
< td class = "paramname" > < em > config< / em >   < / td >
2022-08-23 15:00:33 +00:00
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2024-03-15 14:23:36 +00:00
< dl class = "section note" > < dt > Note< / dt > < dd > This API should be called at the beginning of the application using the PIT driver.< / dd > < / dl >
2022-08-23 15:00:33 +00:00
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
2024-03-15 14:23:36 +00:00
< tr > < td class = "paramname" > base< / td > < td > PIT peripheral base address < / td > < / tr >
< tr > < td class = "paramname" > config< / td > < td > Pointer to the user's PIT config structure < / td > < / tr >
2022-08-23 15:00:33 +00:00
< / table >
< / dd >
< / dl >
< / div >
< / div >
2024-03-15 14:23:36 +00:00
< a class = "anchor" id = "ga1f9b6d5e9e463844f85e31102458c1fc" > < / a >
2022-08-23 15:00:33 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2024-03-15 14:23:36 +00:00
< td class = "memname" > void PIT_Deinit < / td >
2022-08-23 15:00:33 +00:00
< td > (< / td >
2024-03-15 14:23:36 +00:00
< td class = "paramtype" > PIT_Type *  < / td >
< td class = "paramname" > < em > base< / em > < / td > < td > )< / td >
2022-08-23 15:00:33 +00:00
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
2024-03-15 14:23:36 +00:00
< tr > < td class = "paramname" > base< / td > < td > PIT peripheral base address < / td > < / tr >
2022-08-23 15:00:33 +00:00
< / table >
< / dd >
< / dl >
< / div >
< / div >
2024-03-15 14:23:36 +00:00
< a class = "anchor" id = "gae7dc830a1a71ec7597ba78ccc76abfb6" > < / a >
2022-08-23 15:00:33 +00:00
< div class = "memitem" >
< div class = "memproto" >
2023-08-31 15:30:31 +00:00
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
2022-08-23 15:00:33 +00:00
< table class = "memname" >
< tr >
2024-03-15 14:23:36 +00:00
< td class = "memname" > static void PIT_GetDefaultConfig < / td >
2022-08-23 15:00:33 +00:00
< td > (< / td >
2024-03-15 14:23:36 +00:00
< td class = "paramtype" > < a class = "el" href = "a00057.html#ga767a81b02a29e189c563188dd467a67b" > pit_config_t< / a > *  < / td >
< td class = "paramname" > < em > config< / em > < / td > < td > )< / td >
2022-08-23 15:00:33 +00:00
< td > < / td >
< / tr >
< / table >
2023-08-31 15:30:31 +00:00
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > inline< / span > < span class = "mlabel" > static< / span > < / span > < / td >
< / tr >
< / table >
2022-08-23 15:00:33 +00:00
< / div > < div class = "memdoc" >
2024-03-15 14:23:36 +00:00
< p > The default values are as follows. < / p >
< div class = "fragment" > < div class = "line" > * config-> enableRunInDebug = < span class = "keyword" > false< / span > ;< / div >
< div class = "line" > * < / div >
< / div > <!-- fragment --> < dl class = "params" > < dt > Parameters< / dt > < dd >
2022-08-23 15:00:33 +00:00
< table class = "params" >
2024-03-15 14:23:36 +00:00
< tr > < td class = "paramname" > config< / td > < td > Pointer to the configuration structure. < / td > < / tr >
2022-08-23 15:00:33 +00:00
< / table >
< / dd >
< / dl >
< / div >
< / div >
2024-03-15 14:23:36 +00:00
< a class = "anchor" id = "gabe6831cfb502ca058f15fcf065cd13de" > < / a >
2022-08-23 15:00:33 +00:00
< div class = "memitem" >
< div class = "memproto" >
2023-08-31 15:30:31 +00:00
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
2022-08-23 15:00:33 +00:00
< table class = "memname" >
< tr >
2024-03-15 14:23:36 +00:00
< td class = "memname" > static void PIT_SetTimerChainMode < / td >
2022-08-23 15:00:33 +00:00
< td > (< / td >
2024-03-15 14:23:36 +00:00
< td class = "paramtype" > PIT_Type *  < / td >
2022-08-23 15:00:33 +00:00
< td class = "paramname" > < em > base< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
2024-03-15 14:23:36 +00:00
< td class = "paramtype" > < a class = "el" href = "a00057.html#gadda15e462fb93f2eea6237cab74dc7ca" > pit_chnl_t< / a >   < / td >
< td class = "paramname" > < em > channel< / em > , < / td >
2023-08-31 15:30:31 +00:00
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > bool  < / td >
2024-03-15 14:23:36 +00:00
< td class = "paramname" > < em > enable< / em >   < / td >
2022-08-23 15:00:33 +00:00
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
2023-08-31 15:30:31 +00:00
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > inline< / span > < span class = "mlabel" > static< / span > < / span > < / td >
< / tr >
< / table >
2022-08-23 15:00:33 +00:00
< / div > < div class = "memdoc" >
2024-03-15 14:23:36 +00:00
< p > When a timer has a chain mode enabled, it only counts after the previous timer has expired. If the timer n-1 has counted down to 0, counter n decrements the value by one. Each timer is 32-bits, which allows the developers to chain timers together and form a longer timer (64-bits and larger). The first timer (timer 0) can't be chained to any other timer.< / p >
2022-08-23 15:00:33 +00:00
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
2024-03-15 14:23:36 +00:00
< tr > < td class = "paramname" > base< / td > < td > PIT peripheral base address < / td > < / tr >
< tr > < td class = "paramname" > channel< / td > < td > Timer channel number which is chained with the previous timer < / td > < / tr >
< tr > < td class = "paramname" > enable< / td > < td > Enable or disable chain. true: Current timer is chained with the previous timer. false: Timer doesn't chain with other timers. < / td > < / tr >
2022-08-23 15:00:33 +00:00
< / table >
< / dd >
< / dl >
< / div >
< / div >
2024-03-15 14:23:36 +00:00
< a class = "anchor" id = "ga157360547de18885d6a783d2b510d87e" > < / a >
2022-08-23 15:00:33 +00:00
< div class = "memitem" >
< div class = "memproto" >
2023-08-31 15:30:31 +00:00
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
2022-08-23 15:00:33 +00:00
< table class = "memname" >
< tr >
2024-03-15 14:23:36 +00:00
< td class = "memname" > static void PIT_EnableInterrupts < / td >
2022-08-23 15:00:33 +00:00
< td > (< / td >
2024-03-15 14:23:36 +00:00
< td class = "paramtype" > PIT_Type *  < / td >
2022-08-23 15:00:33 +00:00
< td class = "paramname" > < em > base< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
2024-03-15 14:23:36 +00:00
< td class = "paramtype" > < a class = "el" href = "a00057.html#gadda15e462fb93f2eea6237cab74dc7ca" > pit_chnl_t< / a >   < / td >
< td class = "paramname" > < em > channel< / em > , < / td >
2022-08-23 15:00:33 +00:00
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
2024-03-15 14:23:36 +00:00
< td class = "paramtype" > uint32_t  < / td >
< td class = "paramname" > < em > mask< / em >   < / td >
2022-08-23 15:00:33 +00:00
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
2023-08-31 15:30:31 +00:00
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > inline< / span > < span class = "mlabel" > static< / span > < / span > < / td >
< / tr >
< / table >
2022-08-23 15:00:33 +00:00
< / div > < div class = "memdoc" >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
2024-03-15 14:23:36 +00:00
< tr > < td class = "paramname" > base< / td > < td > PIT peripheral base address < / td > < / tr >
< tr > < td class = "paramname" > channel< / td > < td > Timer channel number < / td > < / tr >
< tr > < td class = "paramname" > mask< / td > < td > The interrupts to enable. This is a logical OR of members of the enumeration < a class = "el" href = "a00057.html#gae6b70a879fb84816fb40294c9e42846d" title = "List of PIT interrupts. " > pit_interrupt_enable_t< / a > < / td > < / tr >
2022-08-23 15:00:33 +00:00
< / table >
< / dd >
< / dl >
< / div >
< / div >
2024-03-15 14:23:36 +00:00
< a class = "anchor" id = "ga12d03e0905453194bd5c3560996eb976" > < / a >
2022-08-23 15:00:33 +00:00
< div class = "memitem" >
< div class = "memproto" >
2023-08-31 15:30:31 +00:00
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
2022-08-23 15:00:33 +00:00
< table class = "memname" >
< tr >
2024-03-15 14:23:36 +00:00
< td class = "memname" > static void PIT_DisableInterrupts < / td >
2022-08-23 15:00:33 +00:00
< td > (< / td >
2024-03-15 14:23:36 +00:00
< td class = "paramtype" > PIT_Type *  < / td >
2022-08-23 15:00:33 +00:00
< td class = "paramname" > < em > base< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
2024-03-15 14:23:36 +00:00
< td class = "paramtype" > < a class = "el" href = "a00057.html#gadda15e462fb93f2eea6237cab74dc7ca" > pit_chnl_t< / a >   < / td >
< td class = "paramname" > < em > channel< / em > , < / td >
2022-08-23 15:00:33 +00:00
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
2024-03-15 14:23:36 +00:00
< td class = "paramtype" > uint32_t  < / td >
< td class = "paramname" > < em > mask< / em >   < / td >
2022-08-23 15:00:33 +00:00
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
2023-08-31 15:30:31 +00:00
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > inline< / span > < span class = "mlabel" > static< / span > < / span > < / td >
< / tr >
< / table >
2022-08-23 15:00:33 +00:00
< / div > < div class = "memdoc" >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
2024-03-15 14:23:36 +00:00
< tr > < td class = "paramname" > base< / td > < td > PIT peripheral base address < / td > < / tr >
< tr > < td class = "paramname" > channel< / td > < td > Timer channel number < / td > < / tr >
< tr > < td class = "paramname" > mask< / td > < td > The interrupts to disable. This is a logical OR of members of the enumeration < a class = "el" href = "a00057.html#gae6b70a879fb84816fb40294c9e42846d" title = "List of PIT interrupts. " > pit_interrupt_enable_t< / a > < / td > < / tr >
2022-08-23 15:00:33 +00:00
< / table >
< / dd >
< / dl >
< / div >
< / div >
2024-03-15 14:23:36 +00:00
< a class = "anchor" id = "ga9ecb3ef65be040e9002a0277b13bb8e3" > < / a >
2022-08-23 15:00:33 +00:00
< div class = "memitem" >
< div class = "memproto" >
2023-08-31 15:30:31 +00:00
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
2022-08-23 15:00:33 +00:00
< table class = "memname" >
< tr >
2024-03-15 14:23:36 +00:00
< td class = "memname" > static uint32_t PIT_GetEnabledInterrupts < / td >
2022-08-23 15:00:33 +00:00
< td > (< / td >
2024-03-15 14:23:36 +00:00
< td class = "paramtype" > PIT_Type *  < / td >
2022-08-23 15:00:33 +00:00
< td class = "paramname" > < em > base< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
2024-03-15 14:23:36 +00:00
< td class = "paramtype" > < a class = "el" href = "a00057.html#gadda15e462fb93f2eea6237cab74dc7ca" > pit_chnl_t< / a >   < / td >
< td class = "paramname" > < em > channel< / em >   < / td >
2022-08-23 15:00:33 +00:00
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
2023-08-31 15:30:31 +00:00
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > inline< / span > < span class = "mlabel" > static< / span > < / span > < / td >
< / tr >
< / table >
2022-08-23 15:00:33 +00:00
< / div > < div class = "memdoc" >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
2024-03-15 14:23:36 +00:00
< tr > < td class = "paramname" > base< / td > < td > PIT peripheral base address < / td > < / tr >
< tr > < td class = "paramname" > channel< / td > < td > Timer channel number< / td > < / tr >
2022-08-23 15:00:33 +00:00
< / table >
< / dd >
< / dl >
2024-03-15 14:23:36 +00:00
< dl class = "section return" > < dt > Returns< / dt > < dd > The enabled interrupts. This is the logical OR of members of the enumeration < a class = "el" href = "a00057.html#gae6b70a879fb84816fb40294c9e42846d" title = "List of PIT interrupts. " > pit_interrupt_enable_t< / a > < / dd > < / dl >
2022-08-23 15:00:33 +00:00
< / div >
< / div >
2024-03-15 14:23:36 +00:00
< a class = "anchor" id = "ga503619dd8ee2244edd12da3e27fa13e2" > < / a >
2022-08-23 15:00:33 +00:00
< div class = "memitem" >
< div class = "memproto" >
2023-08-31 15:30:31 +00:00
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
2022-08-23 15:00:33 +00:00
< table class = "memname" >
< tr >
2024-03-15 14:23:36 +00:00
< td class = "memname" > static uint32_t PIT_GetStatusFlags < / td >
2022-08-23 15:00:33 +00:00
< td > (< / td >
2024-03-15 14:23:36 +00:00
< td class = "paramtype" > PIT_Type *  < / td >
2022-08-23 15:00:33 +00:00
< td class = "paramname" > < em > base< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
2024-03-15 14:23:36 +00:00
< td class = "paramtype" > < a class = "el" href = "a00057.html#gadda15e462fb93f2eea6237cab74dc7ca" > pit_chnl_t< / a >   < / td >
< td class = "paramname" > < em > channel< / em >   < / td >
2022-08-23 15:00:33 +00:00
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
2023-08-31 15:30:31 +00:00
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > inline< / span > < span class = "mlabel" > static< / span > < / span > < / td >
< / tr >
< / table >
2022-08-23 15:00:33 +00:00
< / div > < div class = "memdoc" >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
2024-03-15 14:23:36 +00:00
< tr > < td class = "paramname" > base< / td > < td > PIT peripheral base address < / td > < / tr >
< tr > < td class = "paramname" > channel< / td > < td > Timer channel number< / td > < / tr >
2022-08-23 15:00:33 +00:00
< / table >
< / dd >
< / dl >
2024-03-15 14:23:36 +00:00
< dl class = "section return" > < dt > Returns< / dt > < dd > The status flags. This is the logical OR of members of the enumeration < a class = "el" href = "a00057.html#ga8f00d842bb7b1921ac26313e13dc75ba" title = "List of PIT status flags. " > pit_status_flags_t< / a > < / dd > < / dl >
2022-08-23 15:00:33 +00:00
< / div >
< / div >
2024-03-15 14:23:36 +00:00
< a class = "anchor" id = "gadc0f51c2e1b91fb0c529d752b71477e6" > < / a >
2022-08-23 15:00:33 +00:00
< div class = "memitem" >
< div class = "memproto" >
2023-08-31 15:30:31 +00:00
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
2022-08-23 15:00:33 +00:00
< table class = "memname" >
< tr >
2024-03-15 14:23:36 +00:00
< td class = "memname" > static void PIT_ClearStatusFlags < / td >
2022-08-23 15:00:33 +00:00
< td > (< / td >
2024-03-15 14:23:36 +00:00
< td class = "paramtype" > PIT_Type *  < / td >
2022-08-23 15:00:33 +00:00
< td class = "paramname" > < em > base< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
2024-03-15 14:23:36 +00:00
< td class = "paramtype" > < a class = "el" href = "a00057.html#gadda15e462fb93f2eea6237cab74dc7ca" > pit_chnl_t< / a >   < / td >
< td class = "paramname" > < em > channel< / em > , < / td >
2022-08-23 15:00:33 +00:00
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
2024-03-15 14:23:36 +00:00
< td class = "paramtype" > uint32_t  < / td >
< td class = "paramname" > < em > mask< / em >   < / td >
2022-08-23 15:00:33 +00:00
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
2023-08-31 15:30:31 +00:00
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > inline< / span > < span class = "mlabel" > static< / span > < / span > < / td >
< / tr >
< / table >
2022-08-23 15:00:33 +00:00
< / div > < div class = "memdoc" >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
2024-03-15 14:23:36 +00:00
< tr > < td class = "paramname" > base< / td > < td > PIT peripheral base address < / td > < / tr >
< tr > < td class = "paramname" > channel< / td > < td > Timer channel number < / td > < / tr >
< tr > < td class = "paramname" > mask< / td > < td > The status flags to clear. This is a logical OR of members of the enumeration < a class = "el" href = "a00057.html#ga8f00d842bb7b1921ac26313e13dc75ba" title = "List of PIT status flags. " > pit_status_flags_t< / a > < / td > < / tr >
2022-08-23 15:00:33 +00:00
< / table >
< / dd >
< / dl >
< / div >
< / div >
2024-03-15 14:23:36 +00:00
< a class = "anchor" id = "ga944e9c9bd6848d861a9eb17b617d72f7" > < / a >
2022-08-23 15:00:33 +00:00
< div class = "memitem" >
< div class = "memproto" >
2023-08-31 15:30:31 +00:00
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
2022-08-23 15:00:33 +00:00
< table class = "memname" >
< tr >
2024-03-15 14:23:36 +00:00
< td class = "memname" > static void PIT_SetTimerPeriod < / td >
2022-08-23 15:00:33 +00:00
< td > (< / td >
2024-03-15 14:23:36 +00:00
< td class = "paramtype" > PIT_Type *  < / td >
2022-08-23 15:00:33 +00:00
< td class = "paramname" > < em > base< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
2024-03-15 14:23:36 +00:00
< td class = "paramtype" > < a class = "el" href = "a00057.html#gadda15e462fb93f2eea6237cab74dc7ca" > pit_chnl_t< / a >   < / td >
< td class = "paramname" > < em > channel< / em > , < / td >
2022-08-23 15:00:33 +00:00
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
2024-03-15 14:23:36 +00:00
< td class = "paramtype" > uint32_t  < / td >
< td class = "paramname" > < em > count< / em >   < / td >
2022-08-23 15:00:33 +00:00
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
2023-08-31 15:30:31 +00:00
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > inline< / span > < span class = "mlabel" > static< / span > < / span > < / td >
< / tr >
< / table >
2022-08-23 15:00:33 +00:00
< / div > < div class = "memdoc" >
2024-03-15 14:23:36 +00:00
< p > Timers begin counting from the value set by this function until it reaches 0, then it generates an interrupt and load this register value again. Writing a new value to this register does not restart the timer. Instead, the value is loaded after the timer expires.< / p >
< dl class = "section note" > < dt > Note< / dt > < dd > Users can call the utility macros provided in fsl_common.h to convert to ticks.< / dd > < / dl >
2022-08-23 15:00:33 +00:00
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
2024-03-15 14:23:36 +00:00
< tr > < td class = "paramname" > base< / td > < td > PIT peripheral base address < / td > < / tr >
< tr > < td class = "paramname" > channel< / td > < td > Timer channel number < / td > < / tr >
< tr > < td class = "paramname" > count< / td > < td > Timer period in units of ticks < / td > < / tr >
2022-08-23 15:00:33 +00:00
< / table >
< / dd >
< / dl >
< / div >
< / div >
2024-03-15 14:23:36 +00:00
< a class = "anchor" id = "ga1ffacaa2e8582f59194436ebc6de2db9" > < / a >
2022-08-23 15:00:33 +00:00
< div class = "memitem" >
< div class = "memproto" >
2023-08-31 15:30:31 +00:00
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
2022-08-23 15:00:33 +00:00
< table class = "memname" >
< tr >
2024-03-15 14:23:36 +00:00
< td class = "memname" > static uint32_t PIT_GetCurrentTimerCount < / td >
2022-08-23 15:00:33 +00:00
< td > (< / td >
2024-03-15 14:23:36 +00:00
< td class = "paramtype" > PIT_Type *  < / td >
2022-08-23 15:00:33 +00:00
< td class = "paramname" > < em > base< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
2024-03-15 14:23:36 +00:00
< td class = "paramtype" > < a class = "el" href = "a00057.html#gadda15e462fb93f2eea6237cab74dc7ca" > pit_chnl_t< / a >   < / td >
< td class = "paramname" > < em > channel< / em >   < / td >
2022-08-23 15:00:33 +00:00
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
2023-08-31 15:30:31 +00:00
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > inline< / span > < span class = "mlabel" > static< / span > < / span > < / td >
< / tr >
< / table >
2022-08-23 15:00:33 +00:00
< / div > < div class = "memdoc" >
2024-03-15 14:23:36 +00:00
< p > This function returns the real-time timer counting value, in a range from 0 to a timer period.< / p >
< dl class = "section note" > < dt > Note< / dt > < dd > Users can call the utility macros provided in fsl_common.h to convert ticks to usec or msec.< / dd > < / dl >
2022-08-23 15:00:33 +00:00
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
2024-03-15 14:23:36 +00:00
< tr > < td class = "paramname" > base< / td > < td > PIT peripheral base address < / td > < / tr >
< tr > < td class = "paramname" > channel< / td > < td > Timer channel number< / td > < / tr >
2022-08-23 15:00:33 +00:00
< / table >
< / dd >
< / dl >
2024-03-15 14:23:36 +00:00
< dl class = "section return" > < dt > Returns< / dt > < dd > Current timer counting value in ticks < / dd > < / dl >
2022-08-23 15:00:33 +00:00
< / div >
< / div >
2024-03-15 14:23:36 +00:00
< a class = "anchor" id = "ga3f6b9762079e4ce2de6799e030b14964" > < / a >
2022-08-23 15:00:33 +00:00
< div class = "memitem" >
< div class = "memproto" >
2023-08-31 15:30:31 +00:00
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
2022-08-23 15:00:33 +00:00
< table class = "memname" >
< tr >
2024-03-15 14:23:36 +00:00
< td class = "memname" > static void PIT_StartTimer < / td >
2022-08-23 15:00:33 +00:00
< td > (< / td >
2024-03-15 14:23:36 +00:00
< td class = "paramtype" > PIT_Type *  < / td >
2022-08-23 15:00:33 +00:00
< td class = "paramname" > < em > base< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
2024-03-15 14:23:36 +00:00
< td class = "paramtype" > < a class = "el" href = "a00057.html#gadda15e462fb93f2eea6237cab74dc7ca" > pit_chnl_t< / a >   < / td >
< td class = "paramname" > < em > channel< / em >   < / td >
2022-08-23 15:00:33 +00:00
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
2023-08-31 15:30:31 +00:00
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > inline< / span > < span class = "mlabel" > static< / span > < / span > < / td >
< / tr >
< / table >
2022-08-23 15:00:33 +00:00
< / div > < div class = "memdoc" >
2024-03-15 14:23:36 +00:00
< p > After calling this function, timers load period value, count down to 0 and then load the respective start value again. Each time a timer reaches 0, it generates a trigger pulse and sets the timeout interrupt flag.< / p >
2022-08-23 15:00:33 +00:00
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
2024-03-15 14:23:36 +00:00
< tr > < td class = "paramname" > base< / td > < td > PIT peripheral base address < / td > < / tr >
< tr > < td class = "paramname" > channel< / td > < td > Timer channel number. < / td > < / tr >
2022-08-23 15:00:33 +00:00
< / table >
< / dd >
< / dl >
< / div >
< / div >
2024-03-15 14:23:36 +00:00
< a class = "anchor" id = "ga32f1b8ca9cf0fc82ef192890e97899b8" > < / a >
2022-08-23 15:00:33 +00:00
< div class = "memitem" >
< div class = "memproto" >
2024-03-15 14:23:36 +00:00
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
2022-08-23 15:00:33 +00:00
< table class = "memname" >
< tr >
2024-03-15 14:23:36 +00:00
< td class = "memname" > static void PIT_StopTimer < / td >
2022-08-23 15:00:33 +00:00
< td > (< / td >
2024-03-15 14:23:36 +00:00
< td class = "paramtype" > PIT_Type *  < / td >
2022-08-23 15:00:33 +00:00
< td class = "paramname" > < em > base< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
2024-03-15 14:23:36 +00:00
< td class = "paramtype" > < a class = "el" href = "a00057.html#gadda15e462fb93f2eea6237cab74dc7ca" > pit_chnl_t< / a >   < / td >
< td class = "paramname" > < em > channel< / em >   < / td >
2022-08-23 15:00:33 +00:00
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
2024-03-15 14:23:36 +00:00
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > inline< / span > < span class = "mlabel" > static< / span > < / span > < / td >
< / tr >
< / table >
2022-08-23 15:00:33 +00:00
< / div > < div class = "memdoc" >
2024-03-15 14:23:36 +00:00
< p > This function stops every timer counting. Timers reload their periods respectively after the next time they call the PIT_DRV_StartTimer.< / p >
2022-08-23 15:00:33 +00:00
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
2024-03-15 14:23:36 +00:00
< tr > < td class = "paramname" > base< / td > < td > PIT peripheral base address < / td > < / tr >
< tr > < td class = "paramname" > channel< / td > < td > Timer channel number. < / td > < / tr >
2022-08-23 15:00:33 +00:00
< / table >
< / dd >
< / dl >
< / div >
< / div >
2024-03-15 14:23:36 +00:00
< a class = "anchor" id = "gaadfcf653873f3c881b316f6b9d9ca79c" > < / a >
2022-08-23 15:00:33 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2024-03-15 14:23:36 +00:00
< td class = "memname" > uint64_t PIT_GetLifetimeTimerCount < / td >
2022-08-23 15:00:33 +00:00
< td > (< / td >
2024-03-15 14:23:36 +00:00
< td class = "paramtype" > PIT_Type *  < / td >
< td class = "paramname" > < em > base< / em > < / td > < td > )< / td >
2022-08-23 15:00:33 +00:00
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2024-03-15 14:23:36 +00:00
< p > The lifetime timer is a 64-bit timer which chains timer 0 and timer 1 together. Timer 0 and 1 are chained by calling the PIT_SetTimerChainMode before using this timer. The period of lifetime timer is equal to the "period of timer 0 * period of timer 1". For the 64-bit value, the higher 32-bit has the value of timer 1, and the lower 32-bit has the value of timer 0.< / p >
2022-08-23 15:00:33 +00:00
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
2024-03-15 14:23:36 +00:00
< tr > < td class = "paramname" > base< / td > < td > PIT peripheral base address< / td > < / tr >
2022-08-23 15:00:33 +00:00
< / table >
< / dd >
< / dl >
2024-03-15 14:23:36 +00:00
< dl class = "section return" > < dt > Returns< / dt > < dd > Current lifetime timer value < / dd > < / dl >
2022-08-23 15:00:33 +00:00
< / div >
< / div >
< / div > <!-- contents -->
< / div > <!-- doc - content -->
<!-- HTML footer for doxygen 1.8.5 -->
<!-- start footer part -->
< div id = "nav-path" class = "navpath" > <!-- id is needed for treeview function! -->
< ul class = "foot" >
< li class = "footer" > © 2016 NXP Semiconductors. All rights reserved.
< / li >
< / ul >
< / div >
< / body >
< / html >