HP85 GPIB Disk Emulator
1.0
HP85GPIBDiskEmulator
|
Go to the documentation of this file.
11 #include "user_config.h"
22 void V2B_MSB(uint8_t *B,
int index,
int size, uint32_t val)
25 for(i=size-1;i>=0;--i)
27 B[index+i] = val & 0xff;
41 void V2B_LSB(uint8_t *B,
int index,
int size, uint32_t val)
46 B[index+i] = val & 0xff;
58 uint32_t
B2V_MSB(uint8_t *B,
int index,
int size)
66 val |= (uint8_t) (B[i+index] & 0xff);
78 uint32_t
B2V_LSB(uint8_t *B,
int index,
int size)
83 for(i=size-1;i>=0;--i)
86 val |= (uint8_t) (B[i+index] & 0xff);
98 void B2S(uint8_t *B,
int index, uint8_t *name,
int size)
102 name[i] = B[index+i];
uint32_t B2V_LSB(uint8_t *B, int index, int size)
Convert a byte array into a value bytes are LSB ... MSB order.
uint32_t B2V_MSB(uint8_t *B, int index, int size)
Convert a byte array into a value bytes are MSB ... LSB order.
void B2S(uint8_t *B, int index, uint8_t *name, int size)
Create a string from data that has no EOS but known size.
void V2B_MSB(uint8_t *B, int index, int size, uint32_t val)
Convert Value into byte array bytes are MSB ... LSB order.
void V2B_LSB(uint8_t *B, int index, int size, uint32_t val)
Convert Value into byte array bytes are LSB ... MSB order.