#define SPARE2 0x87 //!< Register 0x87 ; ACCESS RW; Default Value:0x00
union
{
struct
{
unsigned char :3;
unsigned char CIF_EN:1;
unsigned char :1;
unsigned char SMUTE_GAIN_CTRL_EN:1;
unsigned char :2;
}refined;
unsigned char raw;
} reg87;
#define FMCHAN0 0x88 //!< Register 0x88 ; ACCESS RW; Default Value:0x46
union
{
struct
{
unsigned char FM_CHAN:4; //FM_CHAN<11:8>
unsigned char :2;
unsigned char AM_FM:1;
unsigned char TUNE:1;
}refined;
unsigned char raw;
} reg88;
#define FMCHAN1 0x89 //!< Register 0x89 ; ACCESS RW; Default Value:0xB8
union
{
struct
{
unsigned char FM_CHAN:8 ; //FM_CHAN<7:0>
}refined;
unsigned char raw;
} reg89;
#define AMCHAN0 0x8C //!< Register 0x8C ; ACCESS RW; Default Value:0x01
union
{
struct
{
unsigned char AM_CHAN:7 ; //AM_CHAN<14:8>
unsigned char :1;
}refined;
unsigned char raw;
} reg8C;
#define AMCHAN1 0x8D //!< Register 0x8D ; ACCESS RW; Default Value:0xF8
union
{
struct
{
unsigned char AM_CHAN:8 ; //AM_CHAN<7:0>
}refined;
unsigned char raw;
} reg8D;
根据手册写的,这么写可以方便操作不同位段组合。
|