Appiko
|
Header file for low level S2LP SPI driver. To be copied in the application floder and customized according to the SPI driver used. More...
#include "S2LP_Config.h"
Go to the source code of this file.
Functions | |
void | SdkEvalSpiInit (void) |
Write single or multiple registers. More... | |
void | SdkEvalSpiDeinit (void) |
Deinitializes the SPI. More... | |
StatusBytes | SdkEvalSpiWriteRegisters (uint8_t cRegAddress, uint8_t cNbBytes, uint8_t *pcBuffer) |
Write single or multiple registers. More... | |
StatusBytes | SdkEvalSpiReadRegisters (uint8_t cRegAddress, uint8_t cNbBytes, uint8_t *pcBuffer) |
Read single or multiple registers. More... | |
StatusBytes | SdkEvalSpiCommandStrobes (uint8_t cCommandCode) |
Send a command. More... | |
StatusBytes | SdkEvalSpiWriteFifo (uint8_t cNbBytes, uint8_t *pcBuffer) |
Write data into TX FIFO. More... | |
StatusBytes | SdkEvalSpiReadFifo (uint8_t cNbBytes, uint8_t *pcBuffer) |
Read data from RX FIFO. More... | |
void | SdkEvalEnterShutdown (void) |
Puts at logic 1 the SDN pin. More... | |
void | SdkEvalExitShutdown (void) |
Put at logic 0 the SDN pin. More... | |
SFlagStatus | SdkEvalCheckShutdown (void) |
check the logic(0 or 1) at the SDN pin. More... | |
This header file constitutes an interface to the SPI driver used to communicate with S2LP. It exports some function prototypes to write/read registers and FIFOs and to send command strobes. Since the S2LP libraries are totally platform independent, the implementation of these functions are not provided here. The user have to implement these functions taking care to keep the exported prototypes.
These functions are:
THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
THIS SOURCE CODE IS PROTECTED BY A LICENSE. FOR MORE INFORMATION PLEASE CAREFULLY READ THE LICENSE AGREEMENT FILE LOCATED IN THE ROOT DIRECTORY OF THIS FIRMWARE PACKAGE.
Definition in file MCU_Interface_template.h.