STEVAL-MKI010V1 STMicroelectronics, STEVAL-MKI010V1 Datasheet - Page 26
![no-image](/images/manufacturer_photos/0/6/637/stmicroelectronics_sml.jpg)
STEVAL-MKI010V1
Manufacturer Part Number
STEVAL-MKI010V1
Description
BOARD ADAPTER 20DIP LIS3L02AS4
Manufacturer
STMicroelectronics
Series
MEMSr
Specifications of STEVAL-MKI010V1
Design Resources
LIS3L02AS4 Adapter to DIL24 Schematic
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Other names
497-6228
STM32-MEMS development kit
7.2.11
7.2.12
26/42
MEMS_SPI_SendFrame function
Table 23
Table 23.
MEMS_SPI_ReceiveFrame function
Table 24
Table 24.
Function prototype
Description
Input parameter1
Input parameter2
Input parameter3
Output parameter
Return parameter
Function prototype
Description
Input parameter1
Input parameter2
Output parameter
Return parameter
Function name
Function name
describes the MEMS_SPI_SendFrame function.
describes the MEMS_SPI_ReceiveFrame function.
MEMS_SPI_SendFrame function
MEMS_SPI_ReceiveFrame function
ErrorStatus MEMS_SPI_ReceiveFrame
(u8 RegAddress, u8 *pBuffer, u8 NoOfBytes)
Receives one frame over SPI.
RegAddress: address of source register
NoOfBytes: number of bytes to be received
pBuffer: pointer to output buffer
An ErrorStatus enumeration value:
– SUCCESS: register written
– ERROR: register not written
ErrorStatus MEMS_SPI_SendFrame
(u8 RegAddress, u8 *pBuffer, u8 NoOfBytes)
Sends one frame over SPI.
RegAddress: address of register
pBuffer: pointer to buffer with data
NoOfBytes: number of bytes to be sent
None
An ErrorStatus enumeration value:
– SUCCESS: register written
– ERROR: register not written
Doc ID 15703 Rev 1
MEMS_SPI_ReceiveFrame
MEMS_SPI_SendFrame
UM0701