drivercom.c

manages the initial driver communication port

Author

Marcel Sondaar

License

Public Domain

Summary
drivercom.cmanages the initial driver communication port
Functions
drv_sendmessagesends a message over communication port
drv_setname
drv_peekmessageChecks if a message is waiting
drv_readmessageReads the message from the queue

Functions

drv_sendmessage

void drv_sendmessage(unsigned int dest,
unsigned int size,
char *buffer)

sends a message over communication port

in

destaddress of the receiving object
sizesize of the data to be send
bufferpointer to the data to send

drv_setname

void drv_setname(int service,
int index)

drv_peekmessage

int drv_peekmessage(void)

Checks if a message is waiting

in

nothing

out

returnsize of the waiting message, 0 if none present

drv_readmessage

int drv_readmessage(char *dest)

Reads the message from the queue

in

destpointer to buffer to hold a copy

out

returnaddress of the sending object
void drv_sendmessage(unsigned int dest,
unsigned int size,
char *buffer)
sends a message over communication port
void drv_setname(int service,
int index)
int drv_peekmessage(void)
Checks if a message is waiting
int drv_readmessage(char *dest)
Reads the message from the queue