PackBitsToDword (FUN)

FUNCTION PackBitsToDword : DWORD

Function packs 32 Bits “xBit0” .. “xBit31” into a DWORD.

Example:

PackBitsToDword(
FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,TRUE,
FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,TRUE,FALSE,
FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,TRUE,TRUE,
FALSE,FALSE,FALSE,FALSE,FALSE,TRUE,FALSE,FALSE ) = 16#01020304
InOut:

Scope

Name

Type

Comment

Return

PackBitsToDword

DWORD

function returns the DWORD defined by the BOOL inputs

Input

xBit31

BOOL

Bit 31 of the Dword

xBit30

BOOL

Bit 30 of the Dword

xBit29

BOOL

Bit 29 of the Dword

xBit28

BOOL

Bit 28 of the Dword

xBit27

BOOL

Bit 27 of the Dword

xBit26

BOOL

Bit 26 of the Dword

xBit25

BOOL

Bit 25 of the Dword

xBit24

BOOL

Bit 24 of the Dword

xBit23

BOOL

Bit 23 of the Dword

xBit22

BOOL

Bit 22 of the Dword

xBit21

BOOL

Bit 21 of the Dword

xBit20

BOOL

Bit 20 of the Dword

xBit19

BOOL

Bit 19 of the Dword

xBit18

BOOL

Bit 18 of the Dword

xBit17

BOOL

Bit 17 of the Dword

xBit16

BOOL

Bit 16 of the Dword

xBit15

BOOL

Bit 15 of the Dword

xBit14

BOOL

Bit 14 of the Dword

xBit13

BOOL

Bit 13 of the Dword

xBit12

BOOL

Bit 12 of the Dword

xBit11

BOOL

Bit 11 of the Dword

xBit10

BOOL

Bit 10 of the Dword

xBit9

BOOL

Bit 9 of the Dword

xBit8

BOOL

Bit 8 of the Dword

xBit7

BOOL

Bit 7 of the Dword

xBit6

BOOL

Bit 6 of the Dword

xBit5

BOOL

Bit 5 of the Dword

xBit4

BOOL

Bit 4 of the Dword

xBit3

BOOL

Bit 3 of the Dword

xBit2

BOOL

Bit 2 of the Dword

xBit1

BOOL

Bit 1 of the Dword

xBit0

BOOL

Bit 0 of the Dword