Software APIs
Data Fields
cmd_info Struct Reference

Configuration options for a SPI Flash command. More...

Data Fields

uint32_t reg_offset
 Offset of the CMD_INFO register to set.
 
uint8_t op_code
 Instruction code.
 
bool address
 Address. More...
 
uint8_t dummy_cycles
 Number of dummy cycles.
 
bool handled_in_sw
 Whether the command is handled in software. More...
 

Detailed Description

Configuration options for a SPI Flash command.

Definition at line 446 of file spi_device.c.

Field Documentation

◆ address

bool cmd_info::address

Address.

3 bytes if true, no address if false.

Definition at line 460 of file spi_device.c.

◆ dummy_cycles

uint8_t cmd_info::dummy_cycles

Number of dummy cycles.

Definition at line 464 of file spi_device.c.

◆ handled_in_sw

bool cmd_info::handled_in_sw

Whether the command is handled in software.

If this field is true, BUSY and UPLOAD bits of the CMD_INFO register will be set. spi_device treats the bytes following the address as the payload. Maximum payload size is 256 bytes and spi_device will overwrite the payload area if a larger payload is received.

Definition at line 473 of file spi_device.c.

◆ op_code

uint8_t cmd_info::op_code

Instruction code.

Definition at line 454 of file spi_device.c.

◆ reg_offset

uint32_t cmd_info::reg_offset

Offset of the CMD_INFO register to set.

Definition at line 450 of file spi_device.c.