Mistake on this page?
Report an issue in GitHub or email us
Data Structures | Macros | Enumerations | Functions
sch_int.h File Reference

Internal multi-protocol scheduler interface file. More...

#include "sch_api.h"
#include "pal_bb.h"
#include "wsf_assert.h"

Go to the source code of this file.

Data Structures

struct  SchCtrlBlk_t
 Scheduler control block. More...
 

Macros

#define SCH_MAX_SPAN   ((BbGetBbTimerBoundaryUs() >> 1) + 1)
 Maximum span of scheduler elements. Half of the boundary time. More...
 
#define SCH_LOAD_DELAY_US   300
 Typical time needed for loading BOD. More...
 

Enumerations

Functions

static bool_t schDueTimeInFuture (BbOpDesc_t *pBod)
 Is BOD due time in the future. More...
 
static uint32_t schGetTimeToExecBod (BbOpDesc_t *pBod)
 Return the time between now and the BOD to be executed. More...
 

Detailed Description

Internal multi-protocol scheduler interface file.

Copyright (c) 2013-2019 ARM Ltd. All Rights Reserved.

Copyright (c) 2019 Packetcraft, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file sch_int.h.

Macro Definition Documentation

#define SCH_LOAD_DELAY_US   300

Typical time needed for loading BOD.

Definition at line 44 of file sch_int.h.

#define SCH_MAX_SPAN   ((BbGetBbTimerBoundaryUs() >> 1) + 1)

Maximum span of scheduler elements. Half of the boundary time.

Definition at line 41 of file sch_int.h.

Enumeration Type Documentation

enum schState_t

Scheduler states.

Enumerator
SCH_STATE_IDLE 

Scheduler idle.

SCH_STATE_EXEC 

Scheduler executing BOD.

Definition at line 51 of file sch_int.h.

Function Documentation

static bool_t schDueTimeInFuture ( BbOpDesc_t pBod)
static

Is BOD due time in the future.

Parameters
pBodTarget BOD.
Returns
TRUE if BOD time is in the future, FALSE otherwise.

Definition at line 103 of file sch_int.h.

static uint32_t schGetTimeToExecBod ( BbOpDesc_t pBod)
static

Return the time between now and the BOD to be executed.

Parameters
pBodTarget BOD.
Returns
usec.

Definition at line 120 of file sch_int.h.

Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.