libnjb 2.2.7

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
make64
u_int64_t make64(u_int32_t msdw, u_int32_t lsdw)
Definition: byteorder.c:239
njb1_bytes_to_16bit
u_int16_t njb1_bytes_to_16bit(unsigned char *dp)
Definition: byteorder.c:146
njb3_bytes_to_32bit
u_int32_t njb3_bytes_to_32bit(unsigned char *dp)
Definition: byteorder.c:91
from_32bit_to_njb1_bytes
void from_32bit_to_njb1_bytes(u_int32_t val, unsigned char *dp)
Definition: byteorder.c:112
njb1_bytes_to_32bit
u_int32_t njb1_bytes_to_32bit(unsigned char *dp)
Definition: byteorder.c:72
from_32bit_to_njb3_bytes
void from_32bit_to_njb3_bytes(u_int32_t val, unsigned char *dp)
Definition: byteorder.c:129
from_16bit_to_njb3_bytes
void from_16bit_to_njb3_bytes(u_int16_t val, unsigned char *dp)
Definition: byteorder.c:198
split64
void split64(u_int64_t num, u_int32_t *msdw, u_int32_t *lsdw)
Definition: byteorder.c:258
get_msw
u_int16_t get_msw(u_int32_t word)
Definition: byteorder.c:212
njb3_bytes_to_16bit
u_int16_t njb3_bytes_to_16bit(unsigned char *dp)
Definition: byteorder.c:164
njb1_bytes_to_64bit
u_int64_t njb1_bytes_to_64bit(unsigned char *dp)
Definition: byteorder.c:27
from_64bit_to_njb1_bytes
void from_64bit_to_njb1_bytes(u_int64_t val, unsigned char *dp)
Definition: byteorder.c:52
from_16bit_to_njb1_bytes
void from_16bit_to_njb1_bytes(u_int16_t val, unsigned char *dp)
Definition: byteorder.c:183
get_lsw
u_int16_t get_lsw(u_int32_t word)
Definition: byteorder.c:225