convert bin to hex
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 1975
Convert::BinHex 1.119
Convert::BinHex can extract data from Macintosh BinHex files. more>>
Convert::BinHex can extract data from Macintosh BinHex files.
ALPHA WARNING: this code is currently in its Alpha release. Things may change drastically until the interface is hammered out: if you have suggestions or objections, please speak up now!
SYNOPSIS
Simple functions:
use Convert::BinHex qw(binhex_crc macbinary_crc);
# Compute HQX7-style CRC for data, pumping in old CRC if desired:
$crc = binhex_crc($data, $crc);
# Compute the MacBinary-II-style CRC for the data:
$crc = macbinary_crc($data, $crc);
Hex to bin, low-level interface. Conversion is actually done via an object ("Convert::BinHex::Hex2Bin") which keeps internal conversion state:
# Create and use a "translator" object:
my $H2B = Convert::BinHex->hex2bin; # get a converter object
while (< STDIN >) {
print $STDOUT $H2B->next($_); # convert some more input
}
print $STDOUT $H2B->done; # no more input: finish up
Hex to bin, OO interface. The following operations must be done in the order shown!
# Read data in piecemeal:
$HQX = Convert::BinHex->open(FH=>*STDIN) || die "open: $!";
$HQX->read_header; # read header info
@data = $HQX->read_data; # read in all the data
@rsrc = $HQX->read_resource; # read in all the resource
Bin to hex, low-level interface. Conversion is actually done via an object ("Convert::BinHex::Bin2Hex") which keeps internal conversion state:
# Create and use a "translator" object:
my $B2H = Convert::BinHex->bin2hex; # get a converter object
while (< STDIN >) {
print $STDOUT $B2H->next($_); # convert some more input
}
print $STDOUT $B2H->done; # no more input: finish up
Bin to hex, file interface. Yes, you can convert to BinHex as well as from it!
# Create new, empty object:
my $HQX = Convert::BinHex->new;
# Set header attributes:
$HQX->filename("logo.gif");
$HQX->type("GIFA");
$HQX->creator("CNVS");
# Give it the data and resource forks (either can be absent):
$HQX->data(Path => "/path/to/data"); # here, data is on disk
$HQX->resource(Data => $resourcefork); # here, resource is in core
# Output as a BinHex stream, complete with leading comment:
$HQX->encode(*STDOUT);
PLANNED!!!! Bin to hex, "CAP" interface. Thanks to Ken Lunde for suggesting this.
# Create new, empty object from CAP tree:
my $HQX = Convert::BinHex->from_cap("/path/to/root/file");
$HQX->encode(*STDOUT);
BinHex is a format used by Macintosh for transporting Mac files safely through electronic mail, as short-lined, 7-bit, semi-compressed data streams. Ths module provides a means of converting those data streams back into into binary data.
<<lessALPHA WARNING: this code is currently in its Alpha release. Things may change drastically until the interface is hammered out: if you have suggestions or objections, please speak up now!
SYNOPSIS
Simple functions:
use Convert::BinHex qw(binhex_crc macbinary_crc);
# Compute HQX7-style CRC for data, pumping in old CRC if desired:
$crc = binhex_crc($data, $crc);
# Compute the MacBinary-II-style CRC for the data:
$crc = macbinary_crc($data, $crc);
Hex to bin, low-level interface. Conversion is actually done via an object ("Convert::BinHex::Hex2Bin") which keeps internal conversion state:
# Create and use a "translator" object:
my $H2B = Convert::BinHex->hex2bin; # get a converter object
while (< STDIN >) {
print $STDOUT $H2B->next($_); # convert some more input
}
print $STDOUT $H2B->done; # no more input: finish up
Hex to bin, OO interface. The following operations must be done in the order shown!
# Read data in piecemeal:
$HQX = Convert::BinHex->open(FH=>*STDIN) || die "open: $!";
$HQX->read_header; # read header info
@data = $HQX->read_data; # read in all the data
@rsrc = $HQX->read_resource; # read in all the resource
Bin to hex, low-level interface. Conversion is actually done via an object ("Convert::BinHex::Bin2Hex") which keeps internal conversion state:
# Create and use a "translator" object:
my $B2H = Convert::BinHex->bin2hex; # get a converter object
while (< STDIN >) {
print $STDOUT $B2H->next($_); # convert some more input
}
print $STDOUT $B2H->done; # no more input: finish up
Bin to hex, file interface. Yes, you can convert to BinHex as well as from it!
# Create new, empty object:
my $HQX = Convert::BinHex->new;
# Set header attributes:
$HQX->filename("logo.gif");
$HQX->type("GIFA");
$HQX->creator("CNVS");
# Give it the data and resource forks (either can be absent):
$HQX->data(Path => "/path/to/data"); # here, data is on disk
$HQX->resource(Data => $resourcefork); # here, resource is in core
# Output as a BinHex stream, complete with leading comment:
$HQX->encode(*STDOUT);
PLANNED!!!! Bin to hex, "CAP" interface. Thanks to Ken Lunde for suggesting this.
# Create new, empty object from CAP tree:
my $HQX = Convert::BinHex->from_cap("/path/to/root/file");
$HQX->encode(*STDOUT);
BinHex is a format used by Macintosh for transporting Mac files safely through electronic mail, as short-lined, 7-bit, semi-compressed data streams. Ths module provides a means of converting those data streams back into into binary data.
Download (0.083MB)
Added: 2006-08-04 License: Perl Artistic License Price:
1234 downloads
Convert::Braille 0.05
Convert::Braille is a Perl module that can convert Between Braille Encodings. more>>
Convert::Braille is a Perl module that can convert Between Braille Encodings.
SYNOPSIS
use Convert::Braille;
print brailleAsciiToUnicode ( "HELLO" ), "n";
print brailleDotsToAscii ( "12515123123135" ), "n";
EXPORTS
brailleDotsToUnicode
brailleUnicodeToDots
brailleUnicodeToAscii
brailleAsciiToUnicode
brailleAsciiToDots
brailleDotsToAscii
<<lessSYNOPSIS
use Convert::Braille;
print brailleAsciiToUnicode ( "HELLO" ), "n";
print brailleDotsToAscii ( "12515123123135" ), "n";
EXPORTS
brailleDotsToUnicode
brailleUnicodeToDots
brailleUnicodeToAscii
brailleAsciiToUnicode
brailleAsciiToDots
brailleDotsToAscii
Download (0.008MB)
Added: 2006-08-04 License: Perl Artistic License Price:
1177 downloads
Text::Convert::ToImage
Text::Convert::ToImage is a Perl module. more>>
Text::Convert::ToImage is a Perl module.
SYNOPSIS
use Text::Convert::ToImage;
my $tti = Text::Convert::ToImage->new();
my $length = length($email);
if ($length > 150) {
$email = "Your text length of $length is too large:";
}
my $config = {
TEXT => $email ? $email : "y@hn.org",
POINTSIZE => $point_size ? $point_size : 14,
LEVEL => $level ? $level : 0,
FONT => $font,
XSKEW => $xskew,
YSKEW => $yskew,
};
$tti->calculate($config);
print "Content-type: image/pngnn";
binmode STDOUT;
$tti->Write(png:-);
This was knocked up a long time ago and someone asked me if the source was available so I decided to put it on CPAN. There is very little documentation with it.
There are also very few tests. If more than me and the person who asked for the module use it then I will write some tests for it.
At the moment I have been using it top obfuscate emails and not much else. A demo can be found at http://www.hjackson.org/cgi-bin/tools/email.pl
There are some undocumented features to this module and they are this way because I have not tested to see if they work yet.
<<lessSYNOPSIS
use Text::Convert::ToImage;
my $tti = Text::Convert::ToImage->new();
my $length = length($email);
if ($length > 150) {
$email = "Your text length of $length is too large:";
}
my $config = {
TEXT => $email ? $email : "y@hn.org",
POINTSIZE => $point_size ? $point_size : 14,
LEVEL => $level ? $level : 0,
FONT => $font,
XSKEW => $xskew,
YSKEW => $yskew,
};
$tti->calculate($config);
print "Content-type: image/pngnn";
binmode STDOUT;
$tti->Write(png:-);
This was knocked up a long time ago and someone asked me if the source was available so I decided to put it on CPAN. There is very little documentation with it.
There are also very few tests. If more than me and the person who asked for the module use it then I will write some tests for it.
At the moment I have been using it top obfuscate emails and not much else. A demo can be found at http://www.hjackson.org/cgi-bin/tools/email.pl
There are some undocumented features to this module and they are this way because I have not tested to see if they work yet.
Download (0.011MB)
Added: 2006-08-22 License: Perl Artistic License Price:
1158 downloads
Convert::ASN1 0.20
Convert::ASN1 is an ASN.1 Encode/Decode library. more>>
Convert::ASN1 is an ASN.1 Encode/Decode library.
SYNOPSYS
use Convert::ASN1;
$asn = Convert::ASN1->new;
$asn->prepare(q<
[APPLICATION 7] SEQUENCE {
int INTEGER,
str OCTET STRING
}
>);
$pdu = $asn->encode( int => 7, str => "string");
$out = $asn->decode($pdu);
print $out->{int}," ",$out->{str},"n";
use Convert::ASN1 qw(:io);
$peer = asn_recv($sock,$buffer,0);
$nbytes = asn_read($fh, $buffer);
$nbytes = asn_send($sock, $buffer, $peer);
$nbytes = asn_send($sock, $buffer);
$nbytes = asn_write($fh, $buffer);
$buffer = asn_get($fh);
$yes = asn_ready($fh)
Convert::ASN1 encodes and decodes ASN.1 data structures using BER/DER rules.
<<lessSYNOPSYS
use Convert::ASN1;
$asn = Convert::ASN1->new;
$asn->prepare(q<
[APPLICATION 7] SEQUENCE {
int INTEGER,
str OCTET STRING
}
>);
$pdu = $asn->encode( int => 7, str => "string");
$out = $asn->decode($pdu);
print $out->{int}," ",$out->{str},"n";
use Convert::ASN1 qw(:io);
$peer = asn_recv($sock,$buffer,0);
$nbytes = asn_read($fh, $buffer);
$nbytes = asn_send($sock, $buffer, $peer);
$nbytes = asn_send($sock, $buffer);
$nbytes = asn_write($fh, $buffer);
$buffer = asn_get($fh);
$yes = asn_ready($fh)
Convert::ASN1 encodes and decodes ASN.1 data structures using BER/DER rules.
Download (0.060MB)
Added: 2006-08-22 License: Perl Artistic License Price:
1178 downloads
Convert::Wiki::Node::Head 0.05
Convert::Wiki::Node::Head is a Perl module that represents a headline node. more>>
Convert::Wiki::Node::Head is a Perl module that represents a headline node.
SYNOPSIS
use Convert::Wiki::Node::Head;
my $head = Convert::Wiki::Node->new( txt => About Foo, type => head1 );
print $head->as_wiki();
A Convert::Wiki::Node::Head represents a headline node in a text.
<<lessSYNOPSIS
use Convert::Wiki::Node::Head;
my $head = Convert::Wiki::Node->new( txt => About Foo, type => head1 );
print $head->as_wiki();
A Convert::Wiki::Node::Head represents a headline node in a text.
Download (0.019MB)
Added: 2006-08-21 License: GPL (GNU General Public License) Price:
1159 downloads
Convert Video To Nokia 5800 and others 0.1
Easily convert videos to a Nokia 5800XM mobile phone more>>
Convert Video To Nokia 5800 and others 0.1 is created as a simple service menu entry to easily convert videos to a Nokia 5800XM mobile phone using ffmpeg or convert the files to mpeg4 with aac.
Installation note:
- The default folder to put the file is/home/user/.kde/share/kde4/services/ServiceMenus (for user specific)or/usr/share/kde4/services/ServiceMenus (for system wide). If for some reason your folders are different use command kde4-config --path services to find out the right folders.
- You can easily change the ffmpeg command just by opening the file with a text editor. Currently the command is:ffmpeg -i %u -f mp4 -vcodec mpeg4 -r 30 -b 2200k -s 640x360 -acodec libfaac -r 32000 -ab 128k -ac 2 -async 1 %u.mp4
Requirements:
- KDE
Added: 2009-07-07 License: GPL Price: FREE
12 downloads
Convert::Wiki 0.05
Convert::Wiki is a Perl module that can convert HTML/POD/txt from/to Wiki code. more>>
Convert::Wiki is a Perl module that can convert HTML/POD/txt from/to Wiki code.
SYNOPSIS
use Convert::Wiki;
my $wiki = Convert::Wiki->new();
$wiki->from_txt ( $txt );
die ("Error: " . $wiki->error()) if $wiki->error;
print $wiki->as_wiki();
$wiki->from_html ( $html );
die ("Error: " . $wiki->error()) if $wiki->error;
print $wiki->as_wiki();
# clear the object manually
$wiki->clear();
$wiki->add_txt ( $txt );
die ("Error: " . $wiki->error()) if $wiki->error;
print $wiki->as_wiki();
Convert::Wiki converts from various formats to various Wiki formats.
Input can come as HTML, POD or plain TXT (like it is written in many READMEs). The data will be converted to an internal, node based format and can then be converted to Wikicode as used by many wikis like the Wikipedia.
<<lessSYNOPSIS
use Convert::Wiki;
my $wiki = Convert::Wiki->new();
$wiki->from_txt ( $txt );
die ("Error: " . $wiki->error()) if $wiki->error;
print $wiki->as_wiki();
$wiki->from_html ( $html );
die ("Error: " . $wiki->error()) if $wiki->error;
print $wiki->as_wiki();
# clear the object manually
$wiki->clear();
$wiki->add_txt ( $txt );
die ("Error: " . $wiki->error()) if $wiki->error;
print $wiki->as_wiki();
Convert::Wiki converts from various formats to various Wiki formats.
Input can come as HTML, POD or plain TXT (like it is written in many READMEs). The data will be converted to an internal, node based format and can then be converted to Wikicode as used by many wikis like the Wikipedia.
Download (0.019MB)
Added: 2006-08-04 License: Perl Artistic License Price:
1176 downloads
Convert::BER 1.3101
Convert::BER is a Perl module for ASN.1 Basic Encoding Rules. more>>
Convert::BER is a Perl module for ASN.1 Basic Encoding Rules.
SYNOPSIS
use Convert::BER;
$ber = new Convert::BER;
$ber->encode(
INTEGER => 1,
SEQUENCE => [
BOOLEAN => 0,
STRING => "Hello",
],
REAL => 3.7,
);
$ber->decode(
INTEGER => $i,
SEQUENCE => [
BOOLEAN => $b,
STRING => $s,
],
REAL => $r,
);
Convert::BER provides an OO interface to encoding and decoding data using the ASN.1 Basic Encoding Rules (BER), a platform independent way of encoding structured binary data together with the structure.
<<lessSYNOPSIS
use Convert::BER;
$ber = new Convert::BER;
$ber->encode(
INTEGER => 1,
SEQUENCE => [
BOOLEAN => 0,
STRING => "Hello",
],
REAL => 3.7,
);
$ber->decode(
INTEGER => $i,
SEQUENCE => [
BOOLEAN => $b,
STRING => $s,
],
REAL => $r,
);
Convert::BER provides an OO interface to encoding and decoding data using the ASN.1 Basic Encoding Rules (BER), a platform independent way of encoding structured binary data together with the structure.
Download (0.025MB)
Added: 2006-08-22 License: Perl Artistic License Price:
1171 downloads
Convert::UUlib 1.06
Convert::UUlib is a Perl interface to the uulib library (a.k.a. uudeview/uuenview). more>>
Convert::UUlib is a Perl interface to the uulib library (a.k.a. uudeview/uuenview).
SYNOPSIS
use Convert::UUlib :all;
# read all the files named on the commandline and decode them
# into the CURRENT directory. See below for a longer example.
LoadFile $_ for @ARGV;
for (my $i = 0; my $uu = GetFileListItem $i; $i++) {
if ($uu->state & FILE_OK) {
$uu->decode;
print $uu->filename, "n";
}
}
Read the file doc/library.pdf from the distribution for in-depth information about the C-library used in this interface, and the rest of this document and especially the non-trivial decoder program at the end.
<<lessSYNOPSIS
use Convert::UUlib :all;
# read all the files named on the commandline and decode them
# into the CURRENT directory. See below for a longer example.
LoadFile $_ for @ARGV;
for (my $i = 0; my $uu = GetFileListItem $i; $i++) {
if ($uu->state & FILE_OK) {
$uu->decode;
print $uu->filename, "n";
}
}
Read the file doc/library.pdf from the distribution for in-depth information about the C-library used in this interface, and the rest of this document and especially the non-trivial decoder program at the end.
Download (0.23MB)
Added: 2006-08-21 License: Perl Artistic License Price:
1159 downloads
Convert::Base32 0.02
Convert::Base32 is a Perl module for encoding and decoding of base32 strings. more>>
Convert::Base32 is a Perl module for encoding and decoding of base32 strings.
SYNOPSIS
use Convert::Base32;
$encoded = encode_base32("x3ax27x0fx93");
$decoded = decode_base32($encoded);
This module provides functions to convert string from / to Base32 encoding, specified in RACE internet-draft. The Base32 encoding is designed to encode non-ASCII characters in DNS-compatible host name parts.
<<lessSYNOPSIS
use Convert::Base32;
$encoded = encode_base32("x3ax27x0fx93");
$decoded = decode_base32($encoded);
This module provides functions to convert string from / to Base32 encoding, specified in RACE internet-draft. The Base32 encoding is designed to encode non-ASCII characters in DNS-compatible host name parts.
Download (0.002MB)
Added: 2006-08-12 License: Perl Artistic License Price:
1176 downloads
convert2tifgrayscale
convert2tifgrayscale is a GIMP plugin that can batch convert to tif grayscale for Offset-Printing. more>>
convert2tifgrayscale is a GIMP plugin that can batch convert to tif grayscale for Offset-Printing.
Converts all images in a specified directory to grayscale, then uses unsharp mask and adjusts levels.
<<lessConverts all images in a specified directory to grayscale, then uses unsharp mask and adjusts levels.
Download (MB)
Added: 2006-08-16 License: GPL (GNU General Public License) Price:
1167 downloads
Convert::IBM390 0.22
Convert::IBM390 is a Perl module functions for manipulating mainframe data. more>>
Convert::IBM390 is a Perl module functions for manipulating mainframe data.
SYNOPSIS
use Convert::IBM390 qw(...those desired... or :all);
$eb = asc2eb($string);
$asc = eb2asc($string);
$asc = eb2ascp($string);
$ebrecord = packeb($template, LIST...);
@fields = unpackeb($template, $record);
@lines = hexdump($string [,startaddr [,charset]]);
Convert::IBM390 supplies various functions that you may find useful when messing with IBM System/3[679]0 data. No functions are exported automatically; you must ask for the ones you want. "use ... qw(:all)" exports all functions.
By the way, this module is called "IBM390" because it will deal with data from any mainframe operating system. Nothing about it is specific to z/OS, z/VM, or z/VSE.
<<lessSYNOPSIS
use Convert::IBM390 qw(...those desired... or :all);
$eb = asc2eb($string);
$asc = eb2asc($string);
$asc = eb2ascp($string);
$ebrecord = packeb($template, LIST...);
@fields = unpackeb($template, $record);
@lines = hexdump($string [,startaddr [,charset]]);
Convert::IBM390 supplies various functions that you may find useful when messing with IBM System/3[679]0 data. No functions are exported automatically; you must ask for the ones you want. "use ... qw(:all)" exports all functions.
By the way, this module is called "IBM390" because it will deal with data from any mainframe operating system. Nothing about it is specific to z/OS, z/VM, or z/VSE.
Download (0.023MB)
Added: 2006-08-17 License: Perl Artistic License Price:
1164 downloads
Convert::Cyr
Convert::Cyr, chcp is a Perl module for change cyrillic code page of a text. more>>
Convert::Cyr, chcp is a Perl module for change cyrillic code page of a text.
SYNOPSIS
use Convert::Cyr qw(chcp); $converted_string=chcp($string, $maxlen, $from, $to);
ABSTRACT
Convert::Cyr, chcp - change cyrillic code page of a text.
chcp takes as the first argument a string that is to be converted. It returns the converted string. Second argument is the lenght of the string. Third is source codepage. Forth is target codepage.
Original description from PHP function:
convert_cyr_string (string str, string from, string to) "This function returns the given string converted from one Cyrillic character set to another. The from and to arguments are single characters that represent the source and target Cyrillic character sets."
The supported types are: k - koi8-r w - windows-1251 i - iso8859-5 a - x-cp866 d - x-cp866 m - x-mac-cyrillic
<<lessSYNOPSIS
use Convert::Cyr qw(chcp); $converted_string=chcp($string, $maxlen, $from, $to);
ABSTRACT
Convert::Cyr, chcp - change cyrillic code page of a text.
chcp takes as the first argument a string that is to be converted. It returns the converted string. Second argument is the lenght of the string. Third is source codepage. Forth is target codepage.
Original description from PHP function:
convert_cyr_string (string str, string from, string to) "This function returns the given string converted from one Cyrillic character set to another. The from and to arguments are single characters that represent the source and target Cyrillic character sets."
The supported types are: k - koi8-r w - windows-1251 i - iso8859-5 a - x-cp866 d - x-cp866 m - x-mac-cyrillic
Download (0.005MB)
Added: 2006-08-17 License: Perl Artistic License Price:
1164 downloads
Convert::ASCII::Armor 1.4
Convert::ASCII::Armor is a Perl module that can convert binary octets into ASCII armoured messages. more>>
Convert::ASCII::Armor is a Perl module that can convert binary octets into ASCII armoured messages.
SYNOPSIS
See SYNOPSIS in Convert::ASCII::Armour.
Empty subclass of Convert::ASCII::Armour for American English speakers.
<<lessSYNOPSIS
See SYNOPSIS in Convert::ASCII::Armour.
Empty subclass of Convert::ASCII::Armour for American English speakers.
Download (0.006MB)
Added: 2006-08-04 License: Perl Artistic License Price:
1182 downloads
Convert::MIL1750A 0.1
Convert::MIL1750A is a Perl module for conversion routines between decimal floating/integer values and hexadecimal values. more>>
Convert::MIL1750A is a Perl module for conversion routines between decimal floating/integer values and hexadecimal values in the MIL-STD-1750A format.
SYNOPSIS
use MIL1750A;
# Convert to MIL-STD-1750A hex from decimal
$hex16i = I16_to_1750A( $dec_value );
$hex16f = F16_to_1750A( $dec_value );
$hex32f = F32_to_1750A( $dec_value );
$hex48f = F48_to_1750A( $dec_value );
# Convert MIL-STD-1750A hex to decimal
$dec_value = M1750A_to_16int( $hex16i );
$dec_value = M1750A_to_16flt( $hex16f );
$dec_value = M1750A_to_32flt( $hex32f );
$dec_value = M1750A_to_48flt( $hex48f );
or ...
use MIL1750A qw( i16_to_mil f16_to_mil f32_to_mil f48_to_mil
mil_to_32f mil_to_48f mil_to_16f mil_to_16i );
# Convert to MIL-STD-1750A hex from decimal
$hex16i = i16_to_mil( $dec_value );
$hex16f = f16_to_mil( $dec_value );
$hex32f = f32_to_mil( $dec_value );
$hex48f = f48_to_mil( $dec_value );
# Convert MIL-STD-1750A hex to decimal
$dec_value = mil_to_16i( $hex16i );
$dec_value = mil_to_16f( $hex16f );
$dec_value = mil_to_32f( $hex32f );
$dec_value = mil_to_48f( $hex48f );
Convert::MIL1750A features routines to convert between 16I/16F/32F/48F decimal values and their equivalent in MIL-STD-1750A hexadecimal. The 1750A standard describes a microprocessor that is used as the backbone of many modern and legacy avionics systems. The 1750A stores data as an 8-bit exponent and n-bit mantissa (where n is the number of bits remaining in the value).
It is important to treat 16-bit values as 16-bit, 32-bit as 32-bit and 48-bit as 48-bit. Crossing bit structures will create unexpected results as 1750A hex values are structured differently, depending on their size. Additionally, the 16F format is not a formal member of the 1750A standard; it is used, however, in certain applications and is provided for reference. The 1750A standard allows positive and negative values using the 2s complement arrangement.
This module is extremely useful for ingesting data output by or for a 1750A flight processor. I would like to thank and acknowledge Dave Niklewski for helping me to find the standard documentation.Convert::MIL1750A is a Perl module for conversion routines between decimal floating/integer values and hexadecimal values in the MIL-STD-1750A format.
<<lessSYNOPSIS
use MIL1750A;
# Convert to MIL-STD-1750A hex from decimal
$hex16i = I16_to_1750A( $dec_value );
$hex16f = F16_to_1750A( $dec_value );
$hex32f = F32_to_1750A( $dec_value );
$hex48f = F48_to_1750A( $dec_value );
# Convert MIL-STD-1750A hex to decimal
$dec_value = M1750A_to_16int( $hex16i );
$dec_value = M1750A_to_16flt( $hex16f );
$dec_value = M1750A_to_32flt( $hex32f );
$dec_value = M1750A_to_48flt( $hex48f );
or ...
use MIL1750A qw( i16_to_mil f16_to_mil f32_to_mil f48_to_mil
mil_to_32f mil_to_48f mil_to_16f mil_to_16i );
# Convert to MIL-STD-1750A hex from decimal
$hex16i = i16_to_mil( $dec_value );
$hex16f = f16_to_mil( $dec_value );
$hex32f = f32_to_mil( $dec_value );
$hex48f = f48_to_mil( $dec_value );
# Convert MIL-STD-1750A hex to decimal
$dec_value = mil_to_16i( $hex16i );
$dec_value = mil_to_16f( $hex16f );
$dec_value = mil_to_32f( $hex32f );
$dec_value = mil_to_48f( $hex48f );
Convert::MIL1750A features routines to convert between 16I/16F/32F/48F decimal values and their equivalent in MIL-STD-1750A hexadecimal. The 1750A standard describes a microprocessor that is used as the backbone of many modern and legacy avionics systems. The 1750A stores data as an 8-bit exponent and n-bit mantissa (where n is the number of bits remaining in the value).
It is important to treat 16-bit values as 16-bit, 32-bit as 32-bit and 48-bit as 48-bit. Crossing bit structures will create unexpected results as 1750A hex values are structured differently, depending on their size. Additionally, the 16F format is not a formal member of the 1750A standard; it is used, however, in certain applications and is provided for reference. The 1750A standard allows positive and negative values using the 2s complement arrangement.
This module is extremely useful for ingesting data output by or for a 1750A flight processor. I would like to thank and acknowledge Dave Niklewski for helping me to find the standard documentation.Convert::MIL1750A is a Perl module for conversion routines between decimal floating/integer values and hexadecimal values in the MIL-STD-1750A format.
Download (0.004MB)
Added: 2006-08-07 License: Perl Artistic License Price:
1177 downloads
Secleted [ 0 ] software to compare
Copyright Notice:
Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future software development. The above convert bin to hex search only lists software in full, demo and trial versions for free download. Download links are directly from our mirror sites or publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed