libmsr
dc2dc9c
|
Functions | |
int | msr_dumpbits (uint8_t *buf, int len) |
int | msr_getbit (uint8_t *buf, uint8_t len, int bit) |
int | msr_setbit (uint8_t *buf, uint8_t len, int bit, int val) |
int | msr_decode (uint8_t *inbuf, uint8_t inlen, uint8_t *outbuf, uint8_t *outlen, int bpc) |
int | msr_reverse_tracks (msr_tracks_t *tracks) |
Reverse a msr_tracks_t structure in-place. More... | |
int | msr_reverse_track (msr_track_t *track) |
Reverse a msr_track_t structure in-place. More... | |
void | msr_pretty_output_hex (int fd, msr_tracks_t tracks) |
Dump a "pretty" hexadecimal representation of tracks to a fd. More... | |
void | msr_pretty_output_string (int fd, msr_tracks_t tracks) |
Dump a "pretty" string representation of tracks to a fd. More... | |
void | msr_pretty_output_bits (int fd, msr_tracks_t tracks) |
Dump a "pretty" binary representation of tracks to a fd. More... | |
void | msr_pretty_printer_hex (msr_tracks_t tracks) |
Dump a "pretty" hexadecimal representation of tracks to stdout. More... | |
void | msr_pretty_printer_string (msr_tracks_t tracks) |
Dump a "pretty" string representation of tracks to stdout. More... | |
void | msr_pretty_printer_bits (msr_tracks_t tracks) |
Dump a "pretty" binary representation of tracks to stdout. More... | |
const unsigned char | msr_reverse_byte (const unsigned char byte) |
Reverse a single byte. More... | |
int msr_decode | ( | uint8_t * | inbuf, |
uint8_t | inlen, | ||
uint8_t * | outbuf, | ||
uint8_t * | outlen, | ||
int | bpc | ||
) |
int msr_dumpbits | ( | uint8_t * | buf, |
int | len | ||
) |
int msr_getbit | ( | uint8_t * | buf, |
uint8_t | len, | ||
int | bit | ||
) |
void msr_pretty_output_bits | ( | int | fd, |
msr_tracks_t | tracks | ||
) |
Dump a "pretty" binary representation of tracks to a fd.
fd | The fd to write to. |
tracks | The tracks to dump. |
void msr_pretty_output_hex | ( | int | fd, |
msr_tracks_t | tracks | ||
) |
Dump a "pretty" hexadecimal representation of tracks to a fd.
fd | The fd to write to. |
tracks | The tracks to dump. |
void msr_pretty_output_string | ( | int | fd, |
msr_tracks_t | tracks | ||
) |
Dump a "pretty" string representation of tracks to a fd.
fd | The fd to write to. |
tracks | The tracks to dump. |
void msr_pretty_printer_bits | ( | msr_tracks_t | tracks | ) |
Dump a "pretty" binary representation of tracks to stdout.
tracks | The tracks to dump. |
void msr_pretty_printer_hex | ( | msr_tracks_t | tracks | ) |
Dump a "pretty" hexadecimal representation of tracks to stdout.
tracks | The tracks to dump. |
void msr_pretty_printer_string | ( | msr_tracks_t | tracks | ) |
Dump a "pretty" string representation of tracks to stdout.
tracks | The tracks to dump. |
const unsigned char msr_reverse_byte | ( | const unsigned char | byte | ) |
Reverse a single byte.
byte | The byte to reverse. |
int msr_reverse_track | ( | msr_track_t * | track | ) |
Reverse a msr_track_t structure in-place.
track | A point to the msr_track_t to reverse. |
int msr_reverse_tracks | ( | msr_tracks_t * | tracks | ) |
Reverse a msr_tracks_t structure in-place.
tracks | A pointer to the msr_tracks_t to reverse. |
int msr_setbit | ( | uint8_t * | buf, |
uint8_t | len, | ||
int | bit, | ||
int | val | ||
) |