Introduction   Client Library API Reference   Demo1   Demo2   Demo3   File List   Index  

lib.h File Reference

definitions and utility functions for IPC library More...

Go to the source code of this file.

Data Structures

struct  message_t
 defines the message typ for requests send to the server More...

Defines

#define REGISTER_EVENT   1
#define UNREGISTER_EVENT   2
#define UNREGISTER_ALL_EVENTS   3
#define SEND_EVENT   4
#define ASYNC_SEND_EVENT   5
#define ACK_SEND_EVENT   6
#define ASYNC_ACK_SEND_EVENT   7
#define RECEIVE_EVENT   8
#define ACK_RECEIVE_EVENT   9
#define GET_ACK   10
#define GIVE_ACK   11
#define GIVE_ACK_AND_RECEIVE_EVENT   12
#define GIVE_ACK_AND_ACK_RECEIVE_EVENT   13
#define TIMEOUT   14
#define SERVER_DUMP   15
#define SHORT_BUFFER_SIZE   4
 this value is valid for l4v2 target-architecture
#define create_control_word_for_call(cmd, len, event_ch, event_nr)
 assembles the control word from function code, event length, event_ch
#define create_control_word_for_reply(res, len, event_ch, event_nr)
 assembles the control word from result value, event length, event_ch
#define get_cmd(word)   ((word >> 28) & 0xf)
 returns the function code
#define get_res(word)   (((word >> 28) & 0xf) ? ((word >> 28) & 0xf) | 0xf0 : 0)
 returns the result value
#define get_len(word)   ((word >> 20) & 0xff)
 returns the length of the message buffer
#define get_event_ch(word)   ((word >> 12) & 0xff)
 returns the event_ch
#define get_event_nr(word)   (word & 0xfff)
 returns the event_nr of the event


Detailed Description

definitions and utility functions for IPC library

Date:
20/03/2004
Author:
Torsten Frenzel <frenzel@os.inf.tu-dresden.de>

Definition in file lib.h.


Define Documentation

#define GIVE_ACK_AND_RECEIVE_EVENT   12

ingroup privatelibapi

Definition at line 33 of file lib.h.


Events Reference Manual, written by Torsten Frenzel  © 2003