typedef union
{
u16 whole;
struct
{
unsigned IMPLEMENTED : 1; /**< Indicates that the key is implemented (from Customer Code to TSL only) */
unsigned ENABLED : 1; /**< Indicates that the key is enabled (from Customer Code to TSL only) */
unsigned DETECTED : 1; /**< Indicates that the key is detected (from TSL to Customer Code only) */
unsigned CHANGED : 1; /**< Indicates that the key state has changed (from TSL to Customer Code only) */
unsigned POSCHANGED : 1; /**< Indicates that the MC key position has changed (from TSL to Customer Code only) */
unsigned ERROR : 1; /**< Indicates that the key has an error (from TSL to Customer Code only) */
unsigned NOISE : 1; /**< Indicates that the key measurement has noise (from TSL to Customer Code only) */
unsigned LOCKED : 1; /**< Reserved (TSL internal usage) */
unsigned DIRECTION : 1; /**< Reserved (TSL internal usage) */
unsigned MCKEY_TYPE : 1; /**< Indicates the type of MCkey: Wheel(0) or Slider(1) (from Customer Code to TSL only) */
unsigned RESERVED0 : 1; /**< Reserved for future use */
unsigned RESERVED1 : 1; /**< Reserved for future use */
unsigned RESERVED2 : 1; /**< Reserved for future use */
unsigned RESERVED3 : 1; /**< Reserved for future use */
unsigned RESERVED4 : 1; /**< Reserved for future use */
unsigned RESERVED5 : 1; /**< Reserved for future use */
} b;
} KeyFlag_T;
我不明白的是那个:号是什么意思 |