TSP: The Transport Sample Protocol



Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

bb_simple.h File Reference

#include <stdio.h>
#include <pthread.h>
#include <bb_utils.h>
#include <bb_core.h>

Go to the source code of this file.

Defines

#define BB_SIMPLE_MSGID_SYNCHRO_COPY   1
 Message id used by an application to notify BB tsp provider to shadow copy the blackboard.

#define BB_SIMPLE_MSGID_SYNCHRO_COPY_ACK   2
 Message id used by BB tsp provider (or even a specialized tsp consumer) in order to notify the application that sampled symbols has been processed.


Functions

void * bb_simple_publish (S_BB_T *bb_simple, const char *var_name, const char *module_name, const int module_instance, E_BB_TYPE_T bb_type, int type_size, int dimension)
 Publish data in a simple BB.

void * bb_simple_subscribe (S_BB_T *bb_simple, const char *var_name, const char *module_name, const int module_instance, E_BB_TYPE_T *bb_type, int *type_size, int *dimension)
 Subscribe to a data in simple BB.

int32_t bb_simple_synchro_config (int synchro_type)
 Configure synchronization type (thread or process).

int32_t bb_simple_synchro_go (S_BB_T *bb_simple, int msg_type)
 Send a simple synchro message through the BB message queue.

int32_t bb_simple_synchro_wait (S_BB_T *bb_simple, int type_msg)
 Attente d'un message de deblocage de synchronisation SIMPLE.

int32_t bb_simple_synchro_verify (S_BB_T *bb_simple)
 Verification de la synchronisation SIMPLE.

int32_t bb_simple_thread_synchro_go (int type_msg)
 Envoi d'un message de déblocage de synchronisation SIMPLE (version thread).

int32_t bb_simple_thread_synchro_wait (int type_msg)
 Attente d'un message de déblocage de synchronisation SIMPLE (version thread).


Detailed Description

Header
/cvsroot/tsp/tsp/src/util/libbb/bb_simple.h,v 1.3 2004/11/09 22:33:01 erk Exp

-----------------------------------------------------------------------

TSP Library - core components for a generic Transport Sampling Protocol.

Copyright (c) 2002 Yves DUFRENNE, Stephane GALLES, Eric NOULARD and Robert PAGNOT

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

-----------------------------------------------------------------------

Project : TSP Maintainer : tsp@astrium-space.com Component : Consumer

-----------------------------------------------------------------------

Purpose : BlackBoard Idiom implementation

-----------------------------------------------------------------------

Definition in file bb_simple.h.


Define Documentation

#define BB_SIMPLE_MSGID_SYNCHRO_COPY   1
 

Message id used by an application to notify BB tsp provider to shadow copy the blackboard.

Definition at line 57 of file bb_simple.h.

Referenced by bb_simple_thread_synchro_go(), and bb_simple_thread_synchro_wait().

#define BB_SIMPLE_MSGID_SYNCHRO_COPY_ACK   2
 

Message id used by BB tsp provider (or even a specialized tsp consumer) in order to notify the application that sampled symbols has been processed.

This is an ACKnolegde message of Synchro COPY. This should not be used by stringent realtime application.

Definition at line 65 of file bb_simple.h.

Referenced by bb_simple_thread_synchro_go(), and bb_simple_thread_synchro_wait().

Framework Home Page.


Beware !! TSP wave is coming...