typedef enum { VM_DCL_SPI_GET_TICK_DELAY_1 = 1, VM_DCL_SPI_GET_TICK_DELAY_2 = 2 } VM_DCL_SPI_GET_TICK;
typedef enum { VM_DCL_SPI_GET_TICK_DELAY_1 = 1, VM_DCL_SPI_GET_TICK_DELAY_2 = 2 } VM_DCL_SPI_GET_TICK;
VM_DCL_SPI_GET_TICK is the ENUM which indicates for how many clocks the SPI should be delayed.
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.
vmdcl_spi.h
|
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. |
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.