Misc services
[Driver API.]

Collaboration diagram for Misc services:


Functions

int a4l_task_init (a4l_task_t *task, const char *name, a4l_task_proc_t proc, void *arg, int priority)
 Intialise and start an Analogy task.
void a4l_task_destroy (a4l_task_t *task)
 Destroy an Analogy task.
int a4l_task_sleep (unsigned long long nsdelay)
 Make the current Analogy task passively wait a defined delay.
unsigned long long a4l_get_time (void)
 Get the absolute time in nanoseconds.


Function Documentation

unsigned long long a4l_get_time ( void   ) 

Get the absolute time in nanoseconds.

Returns:
the absolute time expressed in nanoseconds

void a4l_task_destroy ( a4l_task_t *  task  ) 

Destroy an Analogy task.

This function belongs to a minimal set of task management services (with a4l_task_init() and a4l_task_sleep()). Such features are not critical for Analogy driver development.

Parameters:
[in,out] task Task handle

int a4l_task_init ( a4l_task_t *  task,
const char *  name,
a4l_task_proc_t  proc,
void *  arg,
int  priority 
)

Intialise and start an Analogy task.

This function belongs to a minimal set of task management services (with a4l_task_destroy() and a4l_task_sleep()). Such features are not critical for Analogy driver development.

Parameters:
[in,out] task Task handle
[in] name Optional task name
[in] proc Procedure to be executed by the task
[in] arg Custom argument passed to proc() on entry
[in] priority Priority of the task
Returns:
0 on success, otherwise negative error code

int a4l_task_sleep ( unsigned long long  nsdelay  ) 

Make the current Analogy task passively wait a defined delay.

This function belongs to a minimal set of task management services (with a4l_task_init() and a4l_task_destroy()). Such features are not critical for Analogy driver development.

Parameters:
[in] nsdelay Amount of time expressed in nanoseconds during which the Analogy task must be sleeping.
Returns:
0 on success, otherwise negative error code


Generated on Tue Mar 8 13:02:08 2011 for Xenomai API by  doxygen 1.5.6