Bitwise operations

I have finally hashed out the communications issue with my project but apparently have to run something called a bitwise operation (at least I believe that’s what the manufacturer was saying).

They get the data like this:

Registers
// configuration
// RTD MSBs 01h
// RTD LSBs 02h
// High Fault Threshold MSB 03h
// High Fault Threshold LSB 04h
// Low Fault Threshold MSB 05h
// Low Fault Threshold LSB 06h
// Fault Status 07h

// read 1st 8 bits - configuration?

This is the MSB and LSB shift to get resistance (from what I can ascertain)
// read 2nd 8 bits
// shift data 8 bits left
// read 3rd 8 bits
// store data after 1-bit right shift

High fault threshold?
// read 4th 8 bits
// shift data 8 bits left
// read 5th 8 bits
// store data after 1-bit right shift

Low fault threshold?
// read 6th 8 bits
// shift data 8 bits left
// read 7th 8 bits
// store data after 1-bit right

Fault status
// read 8th 8 bits shift

// set CS high to finish read

So I guess, how do I read 8 bits at a time? I am familiar with the shifting portion just not sure how to read sets of 8 bits.

OK figured this out, the board is giving me a reading that “looks” good.

local highbyte =(temp32[1]<<8); //move 8 bits to the left 8 places
local lowbyte = (temp32[2]); //read second 8 bits
tc = highbyte | lowbyte; //concatenate
tc = (tc>>2); //shift 2 bits to the right

Yep, or combine it:

rc = ((temp32[1]<<8) | temp32[2]) >> 2;