Syntax
typedef enum {
  VM_DCL_SPI_GET_TICK_DELAY_1 = 1,
  VM_DCL_SPI_GET_TICK_DELAY_2 = 2
} VM_DCL_SPI_GET_TICK;
ContentsIndex
PreviousUpNext
VM_DCL_SPI_GET_TICK
Example
Syntax
typedef enum {
  VM_DCL_SPI_GET_TICK_DELAY_1 = 1,
  VM_DCL_SPI_GET_TICK_DELAY_2 = 2
} VM_DCL_SPI_GET_TICK;
Description

VM_DCL_SPI_GET_TICK is the ENUM which indicates for how many clocks the SPI should be delayed.

Example
 VM_DCL_HANDLE spi_handle;
 vm_dcl_spi_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_GET_TICK;
spi_data.is_enable = KAL_TRUE;
spi_data.param = VM_DCL_SPI_GET_TICK_DELAY1;
 vm_dcl_control(spi_handle,VM_DCL_SPI_CONTROL_SET_MODE,(void *)&spi_data);
//To do something.
File

vmdcl_spi.h

Members
Members 
Description 
VM_DCL_SPI_GET_TICK_DELAY_1 = 1 
The delay SPI clock for one clock. 
VM_DCL_SPI_GET_TICK_DELAY_2 = 2 
The delay SPI clock for two clocks. 
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.