메뉴 건너뛰기

TSKit

일반 union structure bit access

2009.07.21 10:01

tskit 조회 수:9197

BCD data를 bit로 shift할 일이 생겨서

sdcard csd structure를 참조해서 구성하였더니 간편하다.

 

typedef union

{

struct

{

unsigned char byte[3];

};

struct

{

unsigned char bcd0:6;

unsigned char bcd0:5;

unsigned char bcd0:6;

};

}BCD;

 

번호 제목 글쓴이 날짜 조회 수
» union structure bit access tskit 2009.07.21 9197