libnjb: /usr/obj/ports/libnjb-2.2.7/libnjb-2.2.7/src/byteorder.h Source File

libnjb 2.2.7

- Main Page
- Modules
- Data Structures
- Files
- Examples

- File List
- Globals

byteorder.h
1 #ifndef __NJB__USB__BYTEORDER__H
2 #define __NJB__USB__BYTEORDER__H
3
4 u_int64_t njb1_bytes_to_64bit(unsigned char *dp);
5 void from_64bit_to_njb1_bytes(u_int64_t val, unsigned char *dp);
6 u_int32_t njb1_bytes_to_32bit(unsigned char *dp);
7 u_int32_t njb3_bytes_to_32bit(unsigned char *dp);
8 void from_32bit_to_njb1_bytes(u_int32_t val, unsigned char *dp);
9 void from_32bit_to_njb3_bytes(u_int32_t val, unsigned char *dp);
10 u_int16_t njb1_bytes_to_16bit(unsigned char *dp);
11 u_int16_t njb3_bytes_to_16bit(unsigned char *dp);
12 void from_16bit_to_njb1_bytes(u_int16_t val, unsigned char *dp);
13 void from_16bit_to_njb3_bytes(u_int16_t val, unsigned char *dp);
14 u_int16_t get_msw (u_int32_t word);
15 u_int16_t get_lsw (u_int32_t word);
16 u_int64_t make64 (u_int32_t msdw, u_int32_t lsdw);
17 void split64 (u_int64_t num, u_int32_t *msdw, u_int32_t *lsdw);
18
19 #endif