Skip to content

abougouffa/m2hpf

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
def
 
 
mod
 
 
 
 
 
 

m2hpf

HPF - DT High Performance File Format high speed decoding library (for Modula-2 programming language)

The current version of m2hpf supports only reading *.hpf files. m2hpf cannot be used to write files in HPF format.

This implementation is based on the DT HPF file format, which is described in a document I found some where on the internet entitled DT High Performance File Format Specification

Copyrighted as:

DT High Performance File Format Specification
_______________________________
Document Number: 22760, Rev A
Copyright © 2007 Data Translation, Inc. All rights reserved.
_______________________________
Data Translation, Inc.
100 Locke Drive
Marlborough, MA 01752-1192, USA
Telephone (508) 481-3700
Home Page http://www.datatranslation.com/

The m2hpf library implements a slightly modified version of the format described in the document above, it has been written to support the actual format of Delsys EMGworks signals.

This library is made to provide quick data access, to be used in real-time signal processing project, so for example; using this library to implement a HPF to CSV file converter will be much more efficient than using the Delsys File Utility.

The library has been written in Modula-2 programming language for an internal use. Now it is published under LGPL-3.0.

Compiling m2hpf

m2hpf has been tested on the ADW Modula-2 compiler on a Win 32-bit target.

The m2hpf is implemented using the Modula-2 ISO standard, but uses some ADW Modula-2 language extensions and the specific compiler directive <*/PACK*> in HPFFile.def.

For this implementation to work also with another ISO compliant compiler, you need to find an equivalent directive to <*/PACK*> for your compiler. You will need to modify the HPFFile.def to use the equivalent directive, and modify some ADW Modula-2 specific code, like in the hardcoded values in the CHUNK_ID enumeration.

For example, in GNU Modula-2, there is an equivalent <* bytealignment (x) *> pragma, however, you still need to modify the code yourself, and find an alternative way to deal with the hardcoded enumerations issue.


THIS LIBRARY IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND.

IF YOU WANT USE THIS LIBRARY IN TOUR PROJECT, YOU MAY NEED TO READ THE FILE FORMAT SPECS DOCUMENT, SPECIALLY THE STATEMENT ON PAGE 1:

All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of Data Translation, Inc.

Abdelhak Bougouffa 2019-2021

About

HPF - DT High Performance File Format high speed decoding library, aka. a library to read Delsys EMGworks *.hpf files

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published