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

Functions

void * ccurFlexRay_outGetNextMessageAddress ()
int ccurFlexRay_outputQueueMap (int init)
int ccurFlexRay_outputQPut (unsigned char boardNum, unsigned char operation, int msgIndex, int msgLen)
int ccurFlexRay_outputQGet (FlexRayOutQElement *e, unsigned char **buffer)

Function Documentation

◆ ccurFlexRay_outGetNextMessageAddress()

void * ccurFlexRay_outGetNextMessageAddress ( )

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

◆ ccurFlexRay_outputQueueMap()

int ccurFlexRay_outputQueueMap ( int init)

◆ ccurFlexRay_outputQPut()

int ccurFlexRay_outputQPut ( unsigned char boardNum,
unsigned char operation,
int msgIndex,
int msgLen )

◆ ccurFlexRay_outputQGet()

int ccurFlexRay_outputQGet ( FlexRayOutQElement * e,
unsigned char ** buffer )