HeMPS  8.0
Macros | Functions
pending_service.h File Reference

This module defines function relative a FIFO of the incomming packets received by slave by which not can be immediately handled. This modules is used only by the slave kernel. More...

#include "../../include/kernel_pkg.h"
#include "packet.h"
Include dependency graph for pending_service.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PENDING_SERVICE_TAM   20
 Pending service array size.
 

Functions

unsigned char add_pending_service (ServiceHeader *)
 
ServiceHeaderget_next_pending_service ()
 

Detailed Description

This module defines function relative a FIFO of the incomming packets received by slave by which not can be immediately handled. This modules is used only by the slave kernel.

HEMPS VERSION - 8.0 - support for RT applications

Distribution: June 2016

Created by: Marcelo Ruaro - contact: marce.nosp@m.lo.r.nosp@m.uaro@.nosp@m.acad.nosp@m..pucr.nosp@m.s.br

Research group: GAPH-PUCRS - contact: ferna.nosp@m.ndo..nosp@m.morae.nosp@m.s@pu.nosp@m.crs.b.nosp@m.r

Function Documentation

unsigned char add_pending_service ( ServiceHeader pending_service)

Add a new pending service. A pending service is a incoming service that cannot be handled immediately by kernel

Parameters
pending_serviceIncoming ServiceHeader pointer
Returns
1 if add was OK, 0 is the array is full (ERROR situation, while forever)
ServiceHeader* get_next_pending_service ( )

Searches by the next pending service, remove then, and return

Returns
The removed ServiceHeader pointer. As it is a memory position, the received part will do something with this pointer and discard the reference