Lines Matching refs:pxTimer
108 Timer_t * pxTimer; /**< The timer to which the command will be applied. */ member
177 static BaseType_t prvInsertTimerInActiveList( Timer_t * const pxTimer,
187 static void prvReloadTimer( Timer_t * const pxTimer,
470 xMessage.u.xTimerParameters.pxTimer = xTimer; in xTimerGenericCommandFromTask()
521 xMessage.u.xTimerParameters.pxTimer = xTimer; in xTimerGenericCommandFromISR()
559 Timer_t * pxTimer = xTimer; in xTimerGetPeriod() local
565 traceRETURN_xTimerGetPeriod( pxTimer->xTimerPeriodInTicks ); in xTimerGetPeriod()
567 return pxTimer->xTimerPeriodInTicks; in xTimerGetPeriod()
574 Timer_t * pxTimer = xTimer; in vTimerSetReloadMode() local
583 pxTimer->ucStatus |= ( uint8_t ) tmrSTATUS_IS_AUTORELOAD; in vTimerSetReloadMode()
587 pxTimer->ucStatus &= ( ( uint8_t ) ~tmrSTATUS_IS_AUTORELOAD ); in vTimerSetReloadMode()
598 Timer_t * pxTimer = xTimer; in xTimerGetReloadMode() local
606 if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) == 0U ) in xTimerGetReloadMode()
640 Timer_t * pxTimer = xTimer; in xTimerGetExpiryTime() local
646 xReturn = listGET_LIST_ITEM_VALUE( &( pxTimer->xTimerListItem ) ); in xTimerGetExpiryTime()
659 Timer_t * pxTimer = xTimer; in xTimerGetStaticBuffer() local
665 if( ( pxTimer->ucStatus & tmrSTATUS_IS_STATICALLY_ALLOCATED ) != 0U ) in xTimerGetStaticBuffer()
670 *ppxTimerBuffer = ( StaticTimer_t * ) pxTimer; in xTimerGetStaticBuffer()
687 Timer_t * pxTimer = xTimer; in pcTimerGetName() local
693 traceRETURN_pcTimerGetName( pxTimer->pcTimerName ); in pcTimerGetName()
695 return pxTimer->pcTimerName; in pcTimerGetName()
699 static void prvReloadTimer( Timer_t * const pxTimer, in prvReloadTimer() argument
706 …while( prvInsertTimerInActiveList( pxTimer, ( xExpiredTime + pxTimer->xTimerPeriodInTicks ), xTime… in prvReloadTimer()
709 xExpiredTime += pxTimer->xTimerPeriodInTicks; in prvReloadTimer()
712 traceTIMER_EXPIRED( pxTimer ); in prvReloadTimer()
713 pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer ); in prvReloadTimer()
724 Timer_t * const pxTimer = ( Timer_t * ) listGET_OWNER_OF_HEAD_ENTRY( pxCurrentTimerList ); in prvProcessExpiredTimer() local
729 ( void ) uxListRemove( &( pxTimer->xTimerListItem ) ); in prvProcessExpiredTimer()
733 if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0U ) in prvProcessExpiredTimer()
735 prvReloadTimer( pxTimer, xNextExpireTime, xTimeNow ); in prvProcessExpiredTimer()
739 pxTimer->ucStatus &= ( ( uint8_t ) ~tmrSTATUS_IS_ACTIVE ); in prvProcessExpiredTimer()
743 traceTIMER_EXPIRED( pxTimer ); in prvProcessExpiredTimer()
744 pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer ); in prvProcessExpiredTimer()
894 static BaseType_t prvInsertTimerInActiveList( Timer_t * const pxTimer, in prvInsertTimerInActiveList() argument
901 listSET_LIST_ITEM_VALUE( &( pxTimer->xTimerListItem ), xNextExpiryTime ); in prvInsertTimerInActiveList()
902 listSET_LIST_ITEM_OWNER( &( pxTimer->xTimerListItem ), pxTimer ); in prvInsertTimerInActiveList()
908 if( ( ( TickType_t ) ( xTimeNow - xCommandTime ) ) >= pxTimer->xTimerPeriodInTicks ) in prvInsertTimerInActiveList()
916 vListInsert( pxOverflowTimerList, &( pxTimer->xTimerListItem ) ); in prvInsertTimerInActiveList()
930 vListInsert( pxCurrentTimerList, &( pxTimer->xTimerListItem ) ); in prvInsertTimerInActiveList()
941 Timer_t * pxTimer; in prvProcessReceivedCommands() local
975 pxTimer = xMessage.u.xTimerParameters.pxTimer; in prvProcessReceivedCommands()
977 if( listIS_CONTAINED_WITHIN( NULL, &( pxTimer->xTimerListItem ) ) == pdFALSE ) in prvProcessReceivedCommands()
980 ( void ) uxListRemove( &( pxTimer->xTimerListItem ) ); in prvProcessReceivedCommands()
987 …traceTIMER_COMMAND_RECEIVED( pxTimer, xMessage.xMessageID, xMessage.u.xTimerParameters.xMessageVal… in prvProcessReceivedCommands()
1004 pxTimer->ucStatus |= ( uint8_t ) tmrSTATUS_IS_ACTIVE; in prvProcessReceivedCommands()
1006 …if( prvInsertTimerInActiveList( pxTimer, xMessage.u.xTimerParameters.xMessageValue + pxTimer->xTim… in prvProcessReceivedCommands()
1010 if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0U ) in prvProcessReceivedCommands()
1012 …prvReloadTimer( pxTimer, xMessage.u.xTimerParameters.xMessageValue + pxTimer->xTimerPeriodInTicks,… in prvProcessReceivedCommands()
1016 pxTimer->ucStatus &= ( ( uint8_t ) ~tmrSTATUS_IS_ACTIVE ); in prvProcessReceivedCommands()
1020 traceTIMER_EXPIRED( pxTimer ); in prvProcessReceivedCommands()
1021 pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer ); in prvProcessReceivedCommands()
1033 pxTimer->ucStatus &= ( ( uint8_t ) ~tmrSTATUS_IS_ACTIVE ); in prvProcessReceivedCommands()
1038 pxTimer->ucStatus |= ( uint8_t ) tmrSTATUS_IS_ACTIVE; in prvProcessReceivedCommands()
1039 pxTimer->xTimerPeriodInTicks = xMessage.u.xTimerParameters.xMessageValue; in prvProcessReceivedCommands()
1040 configASSERT( ( pxTimer->xTimerPeriodInTicks > 0 ) ); in prvProcessReceivedCommands()
1048 …( void ) prvInsertTimerInActiveList( pxTimer, ( xTimeNow + pxTimer->xTimerPeriodInTicks ), xTimeNo… in prvProcessReceivedCommands()
1057 … if( ( pxTimer->ucStatus & tmrSTATUS_IS_STATICALLY_ALLOCATED ) == ( uint8_t ) 0 ) in prvProcessReceivedCommands()
1059 vPortFree( pxTimer ); in prvProcessReceivedCommands()
1063 pxTimer->ucStatus &= ( ( uint8_t ) ~tmrSTATUS_IS_ACTIVE ); in prvProcessReceivedCommands()
1072 pxTimer->ucStatus &= ( ( uint8_t ) ~tmrSTATUS_IS_ACTIVE ); in prvProcessReceivedCommands()
1165 Timer_t * pxTimer = xTimer; in xTimerIsTimerActive() local
1174 if( ( pxTimer->ucStatus & tmrSTATUS_IS_ACTIVE ) == 0U ) in xTimerIsTimerActive()
1193 Timer_t * const pxTimer = xTimer; in pvTimerGetTimerID() local
1202 pvReturn = pxTimer->pvTimerID; in pvTimerGetTimerID()
1215 Timer_t * const pxTimer = xTimer; in vTimerSetTimerID() local
1223 pxTimer->pvTimerID = pvNewID; in vTimerSetTimerID()