Real-Time API Revision2026.1-0
Loading...
Searching...
No Matches
aim1553utils.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 "aim1553utils.h"
#include "dirconfig.h"
#include "ccurutils.h"
#include "rtdbutils.h"
Include dependency graph for aim1553utils.c:

Functions

void * ccurAIM1553_outGetNextMessageAddress ()
int ccurAIM1553_outputQueueMap (int init)
int ccurAIM1553_outputQPut (AIM1553OutQElement *e, int msgLen)
int ccurAIM1553_outputQPutMsg (AIM1553OutQElement *e, unsigned char *msg, int msgLen)
int ccurAIM1553_outputQGet (AIM1553OutQElement *e, unsigned char **buffer)
int ccurAIM1553_readChannelProp (int boardNum, AIM1553ChannelProp *channelProp)
int ccurAIM1553_readMessages (int boardNum, int controllerType, int msgType, IODDC1553Message **aim1553Messages, int *nMessages)

Variables

AIM1553OutputQueue * pAIM1553OutputQueue

Function Documentation

◆ ccurAIM1553_outGetNextMessageAddress()

void * ccurAIM1553_outGetNextMessageAddress ( )

Return the address of the next available AIM 1553 message buffer in the output queue.
The caller must fill the buffer with the AIM 1553 data and then call ccurAIM1553_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.

◆ ccurAIM1553_outputQueueMap()

int ccurAIM1553_outputQueueMap ( int init)

◆ ccurAIM1553_outputQPut()

int ccurAIM1553_outputQPut ( AIM1553OutQElement * e,
int msgLen )

◆ ccurAIM1553_outputQPutMsg()

int ccurAIM1553_outputQPutMsg ( AIM1553OutQElement * e,
unsigned char * msg,
int msgLen )

◆ ccurAIM1553_outputQGet()

int ccurAIM1553_outputQGet ( AIM1553OutQElement * e,
unsigned char ** buffer )

◆ ccurAIM1553_readChannelProp()

int ccurAIM1553_readChannelProp ( int boardNum,
AIM1553ChannelProp * channelProp )

◆ ccurAIM1553_readMessages()

int ccurAIM1553_readMessages ( int boardNum,
int controllerType,
int msgType,
IODDC1553Message ** aim1553Messages,
int * nMessages )

Variable Documentation

◆ pAIM1553OutputQueue

AIM1553OutputQueue* pAIM1553OutputQueue