All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
robotc_glue.h File Reference

Header for ROBOTC glue functions. More...

Go to the source code of this file.

Macros

#define StartTask(pf,...)   StartTaskWithPriority( pf, ##__VA_ARGS__, NORMALPRIO )
 Macro to simulate the ROBOTC StartTask function. More...
 
#define wait1Msec(ms)   vexSleep(ms)
 delay compatibility shortcut More...
 

Typedefs

typedef msg_t task
 ROBOTC "tasks" return type task. More...
 

Functions

Thread * StartTaskWithPriority (tfunc_t pf, tprio_t priority,...)
 Start a task with a given priority. More...
 
void StopTask (tfunc_t pf)
 Stop a task. More...
 

Detailed Description

Header for ROBOTC glue functions.

Macro Definition Documentation

#define StartTask (   pf,
  ... 
)    StartTaskWithPriority( pf, ##__VA_ARGS__, NORMALPRIO )

Macro to simulate the ROBOTC StartTask function.

Examples:
clawbot.c.
#define wait1Msec (   ms)    vexSleep(ms)

delay compatibility shortcut

Examples:
clawbot.c.

Typedef Documentation

typedef msg_t task

ROBOTC "tasks" return type task.

Function Documentation

Thread* StartTaskWithPriority ( tfunc_t  pf,
tprio_t  priority,
  ... 
)

Start a task with a given priority.

Parameters
[in]pfThe thread function
[in]priorityThe thread priority
Returns
A pointer to the thread
void StopTask ( tfunc_t  pf)

Stop a task.

Parameters
[in]pfThe thread function