ВходНаше всё Теги codebook 无线电组件 Поиск Опросы Закон Вторник
23 июля
1233493 Топик полностью
IBAH (22.08.2022 18:17, просмотров: 144) ответил SciFi на Порядок битов в битовых полях "implementation-defined". Такшта маемо то, що маемо.
Перефразирую. Почему в библиотеке CMSIS используются битовые поля если они "implementation-defined"? 
*
/**
  \brief  Union type to access the Application Program Status Register (APSR).
 */
typedef union
{
  struct
  {
    uint32_t _reserved0:27;              /*!< bit:  0..26  Reserved */
    uint32_t Q:1;                        /*!< bit:     27  Saturation condition flag */
    uint32_t V:1;                        /*!< bit:     28  Overflow condition code flag */
    uint32_t C:1;                        /*!< bit:     29  Carry condition code flag */
    uint32_t Z:1;                        /*!< bit:     30  Zero condition code flag */
    uint32_t N:1;                        /*!< bit:     31  Negative condition code flag */
  } b;                                   /*!< Structure used for bit  access */
  uint32_t w;                            /*!< Type      used for word access */
} APSR_Type;


*