| 1 | /* |
| 2 | |
| 3 | Copyright (C) 2022 Alois Schloegl <[email protected]> |
| 4 | |
| 5 | This file is part of the "BioSig for C/C++" repository |
| 6 | (biosig4c++) at http://biosig.sf.net/ |
| 7 | |
| 8 | BioSig is free software; you can redistribute it and/or |
| 9 | modify it under the terms of the GNU General Public License |
| 10 | as published by the Free Software Foundation; either version 3 |
| 11 | of the License, or (at your option) any later version. |
| 12 | |
| 13 | This program is distributed in the hope that it will be useful, |
| 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | GNU General Public License for more details. |
| 17 | |
| 18 | You should have received a copy of the GNU General Public License |
| 19 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 20 | |
| 21 | */ |
| 22 | |
| 23 | |
| 24 | #include <assert.h> |
| 25 | #include <ctype.h> |
| 26 | #include <stddef.h> |
| 27 | #include <stdio.h> |
| 28 | #include <stdlib.h> |
| 29 | #include <string.h> |
| 30 | |
| 31 | #include "../biosig.h" |
| 32 | |
| 33 | /****************************************************************************** |
| 34 | read BiosigDump file |
| 35 | ******************************************************************************/ |
| 36 | void sopen_biosigdump_read(HDRTYPE* hdr) { |
| 37 | |
| 38 | if (VERBOSE_LEVEL > 8) fprintf(stdout,"%s (line %d) %s(hdr)\n", __FILE__, __LINE__, __func__); |
| 39 | |
| 40 | if (hdr->TYPE==BiosigDump) { |
| 41 | biosigERROR(hdr, B4C_FORMAT_UNSUPPORTED, "Format BiosigDump: not supported yet"); |
| 42 | } |
| 43 | /* |
| 44 | between 512 and 4096 bytes are already read into hdr->AS.Header, |
| 45 | the exact number of bytes read, is available in "hdr->HeadLen" |
| 46 | Currently this is 4096, but it might change in future. |
| 47 | */ |
| 48 | } |
| 49 |