Software APIs
Data Structures | Functions
spi_device_unittest::anonymous_namespace{spi_device_unittest.cc} Namespace Reference

Data Structures

class  SpiDeviceTest
 
class  InitTest
 
struct  CmdGetTestCase
 
class  CmdGetTest
 

Functions

 TEST_F (InitTest, Init)
 
 TEST_F (SpiDeviceTest, FlashStatusClear)
 
 TEST_F (SpiDeviceTest, FlashStatusGet)
 
 TEST_F (CmdGetTest, PayloadOverflow)
 
 TEST_P (CmdGetTest, CmdGet)
 
 INSTANTIATE_TEST_SUITE_P (CmdGetTestCases, CmdGetTest, testing::Values(CmdGetTestCase{ .opcode=kSpiDeviceOpcodeChipErase,.address=kSpiDeviceNoAddress,.payload={}, }, CmdGetTestCase{ .opcode=kSpiDeviceOpcodeSectorErase,.address=0x00,.payload={}, }, CmdGetTestCase{ .opcode=kSpiDeviceOpcodePageProgram,.address=0x0a0b0c,.payload={0x01, 0x02, 0x03, 0x04}, }, CmdGetTestCase{ .opcode=kSpiDeviceOpcodePageProgram,.address=0x0a0b0c,.payload={0x01, 0x02, 0x03, 0x04, 0x05}, }, CmdGetTestCase{ .opcode=kSpiDeviceOpcodePageProgram,.address=0x0a0b0c,.payload={0x01, 0x02, 0x03, 0x04, 0x05, 0x06}, }, CmdGetTestCase{ .opcode=kSpiDeviceOpcodePageProgram,.address=0x0a0b0c,.payload={0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07}, }, CmdGetTestCase{ .opcode=kSpiDeviceOpcodePageProgram,.address=0x0a0b0c,.payload={0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08}, }))
 

Data Structure Documentation

◆ spi_device_unittest::anonymous_namespace{spi_device_unittest.cc}::CmdGetTestCase

struct spi_device_unittest::anonymous_namespace{spi_device_unittest.cc}::CmdGetTestCase

Definition at line 180 of file spi_device_unittest.cc.

Data Fields
uint32_t address
spi_device_opcode_t opcode
vector< uint8_t > payload