This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Bit & Byte transform

我想存取SPI所傳送的資料,此資料為24bit,每次傳送8BIT。
我想設一個整數(int A),他是32bit,在這個整數A裡面,存入24bit,請問該怎麼做比較好?