MEM.PackBitsToWord (FUN)

This function of the CAA_Memory.library  packs 16 bits "xBit0" .. "xBit15" in one WORD

Input:

xBit15

BOOL

Bit 15 of WORD

xBit14

BOOL

Bit 14 of WORD

xBit13

BOOL

Bit 13 of WORD

xBit12

BOOL

Bit 12 of WORD

xBit11

BOOL

Bit 11 of WORD

xBit10

BOOL

Bit 10 of WORD

xBit9

BOOL

Bit 9 of WORD

xBit8

BOOL

Bit 8 of WORD

xBit7

BOOL

Bit 7 of WORD

xBit6

BOOL

Bit 6 of WORD

xBit5

BOOL

Bit 5 of WORD

xBit4

BOOL

Bit 4 of WORD

xBit3

BOOL

Bit 3 of WORD

xBit2

BOOL

Bit 2 of WORD

xBit1

BOOL

Bit 1 of WORD

xBit0

BOOL

Bit 0 of WORD

Output:

MEM.PackBitsToWord

WORD

WORD packed

Example:

MEM.PackBitsToWord(

FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,TRUE,

FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,TRUE,FALSE)

= 16#0102