typedef enum { VM_DCL_SPI_PORT_RESERVED = VM_DCL_SPI_GROUP_START, VM_DCL_SPI_PORT1 } VM_DCL_SPI_DEVICE;
typedef enum { VM_DCL_SPI_PORT_RESERVED = VM_DCL_SPI_GROUP_START, VM_DCL_SPI_PORT1 } VM_DCL_SPI_DEVICE;
VM_DCL_SPI_DEVICE is the ENUM SPI type, you can select one of the devices to use with DCL.
VM_DCL_HANDLE spi_handle; spi_handle = vm_dcl_open(VM_DCL_SPI_PORT1, 0); if(VM_DCL_HANDLE_INVALID != spi_handle) { // To do something. }
vmdcl_spi.h
|
Members |
Description |
|
VM_DCL_SPI_PORT_RESERVED = VM_DCL_SPI_GROUP_START |
This is for start SPI 1 only. Do Not Use! |
|
VM_DCL_SPI_PORT1 |
Use from SPI 1. |
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.