Syntax
typedef struct {
  VM_DCL_SPI_MODE mode;
  VMBOOL is_supported;
} vm_dcl_spi_query_mode_t;
ContentsIndex
PreviousUpNext
vm_dcl_spi_query_mode_t
Example
Syntax
typedef struct {
  VM_DCL_SPI_MODE mode;
  VMBOOL is_supported;
} vm_dcl_spi_query_mode_t;
Description

vm_dcl_spi_query_mode_t exposes SPI supported modes. This structure is used as a parameter of VM_DCL_SPI_CONTROL_QUERY_MODE_SUPPORT.

Example
 VM_DCL_HANDLE spi_handle;
 vm_dcl_spi_query_mode_t spi_data;
spi_handle = vm_dcl_open(VM_DCL_SPI_PORT1,0);
if(VM_DCL_HANDLE_INVALID==spi_handle) return;
spi_data.mode=VM_DCL_SPI_MODE_PAUSE;
 vm_dcl_control(spi_handle,VM_DCL_SPI_CONTROL_QUERY_MODE_SUPPORT,(void *)&spi_data);
//To do something.
File

vmdcl_spi.h

Members
Members 
Description 
VM_DCL_SPI_MODE mode; 
[IN]- Specifies the SPI mode. 
VMBOOL is_supported; 
[OUT]- Returns whether the specific mode is supported or not. 
Group
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at support@toolsfactory.com.