typedef struct { VMUINT32 clock; } vm_dcl_spi_clock_t;
typedef struct { VMUINT32 clock; } vm_dcl_spi_clock_t;
vm_dcl_spi_query_mode_t exposes the SPI's clock speed. This structure is used as parameter of VM_DCL_SPI_CONTROL_QUERY_CLOCK. It contains the clock frequency which is used to calculate the SPI's timing parameters.
VM_DCL_HANDLE spi_handle; vm_dcl_spi_clock_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_CLOCK,(void *)&spi_data); //To do something.
vmdcl_spi.h
|
Members |
Description |
|
VMUINT32 clock; |
[OUT]- The SPI base clock in MHz. |
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.