Real-Time API Revision2025.1-3
Loading...
Searching...
No Matches
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

◆ ccurLIN_outGetNextMessageAddress()

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.

◆ ccurLIN_outputQueueMap()

int ccurLIN_outputQueueMap ( int init,
int qType )

◆ ccurLIN_outputQPut()

int ccurLIN_outputQPut ( unsigned char boardNum,
unsigned char operation,
unsigned int frameId,
int msgLen,
int netNumber )

◆ ccurLIN_outputQGet()

int ccurLIN_outputQGet ( LINOutQElement * e,
unsigned char ** buffer )

◆ ccurLIN_readBoardConfig()

int ccurLIN_readBoardConfig ( int boardId,
int boardNum,
int * baud,
char * device,
int * master,
int * linVersion )

◆ ccurLIN_readBoardUserHooks()

int ccurLIN_readBoardUserHooks ( int boardId,
int boardNum,
LINIdUserHooksDefn ** userHooks,
int * nRecords )