Syntax
typedef struct {
  VMUINT32 clock;
} vm_dcl_spi_clock_t;
ContentsIndex
PreviousUpNext
vm_dcl_spi_clock_t
Example
Syntax
typedef struct {
  VMUINT32 clock;
} vm_dcl_spi_clock_t;
Description

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.

Example
 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.
File

vmdcl_spi.h

Members
Members 
Description 
VMUINT32 clock; 
[OUT]- The SPI base clock in MHz. 
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.