Home | History | Annotate | Download | only in telephony

Lines Matching refs:hex

31 /** HEX
34 /* try to convert a hex string into a byte string, assumes 'dst' is properly sized, and hexlen is even.
36 extern int gsm_hex_to_bytes ( cbytes_t hex, int hexlen, bytes_t dst );
38 /* convert a hex string into a byte string, assumes 'dst' is properly sized, and hexlen is even.
40 extern void gsm_hex_to_bytes0 ( cbytes_t hex, int hexlen, bytes_t dst );
42 /* convert a byte string into a hex string, assumes 'hex' is properly sized */
43 extern void gsm_hex_from_bytes( char* hex, cbytes_t src, int srclen );
51 /* convert a 2-char hex value into an int, returns -1 on error */
52 extern int gsm_hex2_to_byte( const char* hex );
54 /* convert a 2-char hex value into an int, returns 0 on error */
55 extern int gsm_hex2_to_byte0( const char* hex );
57 /* convert a 4-char hex value into an int, returns -1 on error */
58 extern int gsm_hex4_to_short( const char* hex );
60 /* convert a 4-char hex value into an int, returns 0 on error */
61 extern int gsm_hex4_to_short0( const char* hex );
63 /* write a byte to a 2-byte hex string */
64 extern void gsm_hex_from_byte( char* hex, int val );
66 extern void gsm_hex_from_short( char* hex, int val );