10 #define TEMU_BUS_SPI_H 20 #define teSPI_WRSR 0x01 // write status register 21 #define teSPI_WRITE 0x02 // write command 22 #define teSPI_READ 0x03 // read command 23 #define teSPI_WDI 0x04 // write disable 24 #define teSPI_STAT 0x05 // read status register 25 #define teSPI_WEN 0x06 // write enable 52 #define TEMU_SPI_MASTER_IFACE_TYPE "temu::SpiMasterDeviceIface" 55 void (*send)(
temu_Object *, uint8_t *Data, uint32_t size, uint32_t configSize,
56 uint32_t responseSize);
59 #define TEMU_SPI_SLAVE_DEV_IFACE_TYPE "temu::SpiSlaveDeviceIface" 71 void (*sendToMaster)(
temu_Object *, uint8_t *Data, uint32_t size);
72 void (*sendToSlave)(
temu_Object *, uint8_t *Data, uint32_t size,
73 uint32_t configSize, uint8_t chipNum,
74 uint32_t responseSize);
77 #define TEMU_SPI_BUS_IFACE_TYPE "temu::SpiBusIface" 85 NULL, NULL,
"eSPI device chip id");
89 NULL, NULL,
"Character length in bits per character.");
98 NULL, NULL,
"eSpi master communication Iface");
103 "eSPI slave devices");
108 NULL, NULL,
"Last chosen chip");
111 #endif // !TEMU_BUS_SPI_H temu_SpiMasterDeviceIfaceRef SpiMasterDevice
Definition: SPI.h:64
#define TEMU_IFACE_REFERENCE_TYPE(N)
Definition: Objsys.h:180
Interface reference.
Definition: Objsys.h:311
TEMU_API void temu_addProperty(temu_Class *Cls, const char *PropName, int Offset, temu_Type Typ, int Count, temu_PropWriter Wr, temu_PropReader Rd, const char *Doc)
uint8_t chipNum
Definition: SPI.h:38
temu_Object Super
Definition: SPI.h:42
uint8_t charLength
Definition: SPI.h:37
#define TEMU_SPI_MASTER_IFACE_TYPE
Definition: SPI.h:52
TEMU_API void temu_requireInterface(temu_Class *Cls, const char *PropName, const char *IfaceType)
temu_SpiDevConfig DevParams
Definition: SPI.h:43
8-bit fixed width unsigned integer
Definition: Objsys.h:294
temu_Object Super
Definition: SPI.h:62
temu_SpiSlaveDeviceIfaceRefArray SpiSlaveDevices
Definition: SPI.h:63
uint8_t CurrentChipNum
Definition: SPI.h:65
Dynamic object/interface array.
Definition: Objsys.h:312