1 /* 2 * $Id$ 3 * 4 * Copyright (C) 2003 ETC s.r.o. 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License 8 * as published by the Free Software Foundation; either version 2 9 * of the License, or (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 19 * 02111-1307, USA. 20 * 21 * Written by Marcel Telka <marcel@telka.sk>, 2003. 22 * 23 */ 24 25 #ifndef URJ_JTAG_H 26 #define URJ_JTAG_H 27 28 #include "types.h" 29 30 typedef enum URJ_ENDIAN { 31 URJ_ENDIAN_LITTLE, 32 URJ_ENDIAN_BIG, 33 URJ_ENDIAN_UNKNOWN, 34 } urj_endian_t; 35 36 /** 37 * Get the endian used in external files. See cmd_endian.c. 38 */ 39 urj_endian_t urj_get_file_endian (void); 40 41 /** 42 * Set the endian used in external files. See cmd_endian.c. 43 */ 44 void urj_set_file_endian (urj_endian_t); 45 46 /** 47 * Return the string representation of an endian type. 48 */ 49 const char *urj_endian_to_string (urj_endian_t); 50 51 /** 52 * Convert an endian string representation into the normal type. 53 */ 54 urj_endian_t urj_endian_from_string (const char *); 55 56 /** 57 * Register the application name with global/data_dir. 58 * @param argv0 is remembered as a pointer, it is not strdup()'ed. 59 */ 60 void urj_set_argv0(const char *argv0); 61 const char *urj_get_data_dir (void); 62 63 #endif /* URJ_JTAG_H */ 64