Syntax
typedef struct {
  VMUINT32 cs_setup_time_min;
  VMUINT32 cs_setup_time_max;
  VMUINT32 cs_hold_time_min;
  VMUINT32 cs_hold_time_max;
  VMUINT32 cs_idle_time_min;
  VMUINT32 cs_idle_time_max;
  VMUINT32 clock_low_time_min;
  VMUINT32 clock_low_time_max;
  VMUINT32 clock_high_time_min;
  VMUINT32 clock_high_time_max;
  VMUINT32 transfer_length_min;
  VMUINT32 transfer_length_max;
  VMUINT32 transfer_count_min;
  VMUINT32 transfer_count_max;
  VMUINT32 slow_down_threshold_min;
  VMUINT32 slow_down_threshold_max;
  VMUINT32 ultra_high_threshold_min;
  VMUINT32 ultra_high_threshold_max;
  VMUINT32 driving_current_min;
  VMUINT32 driving_current_max;
} vm_dcl_spi_capability_t;
ContentsIndex
PreviousUpNext
vm_dcl_spi_capability_t
Example
Syntax
typedef struct {
  VMUINT32 cs_setup_time_min;
  VMUINT32 cs_setup_time_max;
  VMUINT32 cs_hold_time_min;
  VMUINT32 cs_hold_time_max;
  VMUINT32 cs_idle_time_min;
  VMUINT32 cs_idle_time_max;
  VMUINT32 clock_low_time_min;
  VMUINT32 clock_low_time_max;
  VMUINT32 clock_high_time_min;
  VMUINT32 clock_high_time_max;
  VMUINT32 transfer_length_min;
  VMUINT32 transfer_length_max;
  VMUINT32 transfer_count_min;
  VMUINT32 transfer_count_max;
  VMUINT32 slow_down_threshold_min;
  VMUINT32 slow_down_threshold_max;
  VMUINT32 ultra_high_threshold_min;
  VMUINT32 ultra_high_threshold_max;
  VMUINT32 driving_current_min;
  VMUINT32 driving_current_max;
} vm_dcl_spi_capability_t;
Description

vm_dcl_spi_capability_t exposes SPI capabilities which can be queried. This structure is used as a parameter of VM_DCL_SPI_CONTROL_QUERY_CAPABILITY.

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

vmdcl_spi.h

Members
Members 
Description 
VMUINT32 cs_setup_time_min; 
The minimum value for cs setup time. 
VMUINT32 cs_setup_time_max; 
The maximum value for cs setup time. 
VMUINT32 cs_hold_time_min; 
The minimum value for cs hold time. 
VMUINT32 cs_hold_time_max; 
The maximum value for cs hold time. 
VMUINT32 cs_idle_time_min; 
The minimum value for cs idle time. 
VMUINT32 cs_idle_time_max; 
The maximum value for cs idle time. 
VMUINT32 clock_low_time_min; 
The minimum value for clock low time. 
VMUINT32 clock_low_time_max; 
The maximum value for clock low time. 
VMUINT32 clock_high_time_min; 
The minimum value for clock high time. 
VMUINT32 clock_high_time_max; 
The maximum value for clock high time. 
VMUINT32 transfer_length_min; 
The minimum value for transfer length. 
VMUINT32 transfer_length_max; 
The maximum value for transfer length. 
VMUINT32 transfer_count_min; 
The minimum value for transfer count. 
VMUINT32 transfer_count_max; 
The maximum value for transfer count. 
VMUINT32 slow_down_threshold_min; 
The minimum value for slow down threshold. 
VMUINT32 slow_down_threshold_max; 
The maximum value for slow down threshold. 
VMUINT32 ultra_high_threshold_min; 
The minimum value for ultra high threshold. 
VMUINT32 ultra_high_threshold_max; 
The maximum value for ultra high threshold. 
VMUINT32 driving_current_min; 
The minimum value for driving current. 
VMUINT32 driving_current_max; 
The maximum value for driving current. 
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.