I have a query. What does ":" mean? And how can I assign value for each member of struct? I'm trying to set class of device for my Classic Bluetooth Application. But I'm stucked here. Can anyone help me. Thanks in advance.
Code: Select all
typedef struct {
uint32_t reserved_2: 2; /*!< undefined */
uint32_t minor: 6; /*!< minor class */
uint32_t major: 5; /*!< major class */
uint32_t service: 11; /*!< service class */
uint32_t reserved_8: 8; /*!< undefined */
} esp_bt_cod_t;