SIMulation Workbench Documentation SIMulation Workbench Documentation

linutils.c File Reference

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

Functions

void * ccurLIN_outGetNextMessageAddress ()
int ccurLIN_outputQueueMap (int init, int qType)
int ccurLIN_outputQPut (unsigned char boardNum, unsigned char operation, unsigned int frameId, int msgLen, int netNumber)
int ccurLIN_outputQGet (LINOutQElement *e, unsigned char **buffer)
int ccurLIN_readBoardConfig (int boardId, int boardNum, int *baud, char *device, int *master, int *linVersion)
int ccurLIN_readBoardUserHooks (int boardId, int boardNum, LINIdUserHooksDefn **userHooks, int *nRecords)

Function Documentation

void* ccurLIN_outGetNextMessageAddress (  ) 

Return the address of the next available LIN message buffer in the output queue.
The caller must fill the buffer with the LIN data and then call ccurFADX_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 ccurLIN_outputQueueMap ( int  init,
int  qType 
)
int ccurLIN_outputQPut ( unsigned char  boardNum,
unsigned char  operation,
unsigned int  frameId,
int  msgLen,
int  netNumber 
)
int ccurLIN_outputQGet ( LINOutQElement *  e,
unsigned char **  buffer 
)
int ccurLIN_readBoardConfig ( int  boardId,
int  boardNum,
int *  baud,
char *  device,
int *  master,
int *  linVersion 
)
int ccurLIN_readBoardUserHooks ( int  boardId,
int  boardNum,
LINIdUserHooksDefn **  userHooks,
int *  nRecords 
)