SIMulation Workbench Documentation SIMulation Workbench Documentation

ddc1553utils.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <errno.h>
#include <unistd.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
#include "simrtdb.h"
#include "ddc1553utils.h"
#include "dirconfig.h"
#include "ccurutils.h"
#include "rtdbutils.h"
Include dependency graph for ddc1553utils.c:

Functions

void * ccurDDC1553_outGetNextMessageAddress ()
int ccurDDC1553_outputQueueMap (int init)
int ccurDDC1553_outputQPut (DDC1553OutQElement *e, int msgLen)
int ccurDDC1553_outputQPutMsg (DDC1553OutQElement *e, unsigned char *msg, int msgLen)
int ccurDDC1553_outputQGet (DDC1553OutQElement *e, unsigned char **buffer)
int ccurDDC1553_readChannelProp (int boardNum, DDC1553ChannelProp *channelProp)
int ccurDDC1553_readMessages (int boardNum, int controllerType, int msgType, IODDC1553Message **ddc1553Messages, int *nMessages)

Function Documentation

void* ccurDDC1553_outGetNextMessageAddress (  ) 

Return the address of the next available DDC 1553 message buffer in the output queue.
The caller must fill the buffer with the DDC 1553 data and then call ccurDDC1553_outputQPut to place the element int the queue.

Returns:
The address of the next available message buffer. NULL if the queue is full . The queue can fill up if the consumer processes data slower that the producer places element in the queue.
int ccurDDC1553_outputQueueMap ( int  init  ) 
int ccurDDC1553_outputQPut ( DDC1553OutQElement *  e,
int  msgLen 
)
int ccurDDC1553_outputQPutMsg ( DDC1553OutQElement *  e,
unsigned char *  msg,
int  msgLen 
)
int ccurDDC1553_outputQGet ( DDC1553OutQElement *  e,
unsigned char **  buffer 
)
int ccurDDC1553_readChannelProp ( int  boardNum,
DDC1553ChannelProp *  channelProp 
)
int ccurDDC1553_readMessages ( int  boardNum,
int  controllerType,
int  msgType,
IODDC1553Message **  ddc1553Messages,
int *  nMessages 
)