-
Structures syntax
Hi everyone!! Could someone explain me the structure below? I know about structures and their syntax but first time I see something like this. It's like accesing the members inside the structure.. This is a convinient way to access multiple member at once?
By the way the nrf_qspi_cinstr_conf_t is typedef struct.
Code:
nrf_qspi_cinstr_conf_t cinstr_cfg = {
.opcode = QSPI_STD_CMD_RSTEN,
.length = NRF_QSPI_CINSTR_LEN_1B,
.io2_level = true,
.io3_level = true,
.wipwait = true,
.wren = true
};
-
This is not a way to access the members, but to initialise them by name.