You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
528 B
23 lines
528 B
#ifndef __VXB_SM2130_SPI_DEV_H
|
|
#define __VXB_SM2130_SPI_DEV_H
|
|
|
|
#define SPI_DEV_SM2130 "SM2130"
|
|
|
|
#define SPI_DEV_MUTEX_OPT \
|
|
(SEM_Q_PRIORITY | SEM_DELETE_SAFE | SEM_INVERSION_SAFE)
|
|
|
|
typedef struct _spi_1553b_drv_ctrl {
|
|
VXB_DEVICE_ID pDev;
|
|
|
|
int cs;
|
|
int mode;
|
|
unsigned int freq;
|
|
|
|
INT32 (*read)(VXB_DEVICE_ID pDev, UINT8 cmd);
|
|
STATUS (*write)(VXB_DEVICE_ID pDev, UINT8 cmd, UINT16 var);
|
|
|
|
SEM_ID muteSem; /* operation semaphore */
|
|
VXB_SPI_MAST_SPEC *specialInfo;
|
|
} SM2130_SPI_DEV;
|
|
|
|
#endif
|
|
|