00001 /* Implémentation Linux de la bibliotheque XADLL de Sidena 00002 * Copyright (C) 2005 ENSTAR 00003 * 00004 * This program is free software; you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation; either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program; if not, write to the Free Software 00016 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00017 * 00018 * You can contact us: 00019 * Association ENSTAR 00020 * Ecole Nationale Superieure de Techniques Avancees 00021 * 32 boulevard Victor 00022 * 75739 Paris Cedex 15 00023 * FRANCE 00024 * 00025 * enstar@ensta.fr 00026 */ 00027 00028 /** @file messages.h 00029 * @brief Construction des messages 00030 * @author Francois Fevotte <francois.fevotte@ensta.org> 00031 * $Revision: 7 $ 00032 * $Date: 2006-02-13 14:34:33 +0100 (Mon, 13 Feb 2006) $ 00033 */ 00034 00035 /* $Id: messages.h 7 2006-02-13 13:34:33Z francois $ */ 00036 00037 /** @brief Insertion directe d'un caractère dans le message 00038 */ 00039 void XA_raw_insertB (unsigned char octet); 00040 00041 00042 /** @brief insertion après transcodification 00043 */ 00044 void XA_insertB (unsigned char octet); 00045 00046 00047 /** @brief initialisation d'un message ou ajout d'un sous-message (code 28) 00048 */ 00049 void XA_createmsg (unsigned char adrmod, char read); 00050 00051 00052 /** @brief on ajoute LNGREC et la fonction 00053 */ 00054 void XA_build (unsigned char adrmod, unsigned char fonction, unsigned char lngrec); 00055 00056 00057 /** @brief Envoi d'un message 00058 */ 00059 char XA_send(void);