L14-Click
1.0
STM32WLE5CC LoRaWAN Sensor Platform
Loading...
Searching...
No Matches
spi.h
Go to the documentation of this file.
1
/* USER CODE BEGIN Header */
2
/**
3
******************************************************************************
4
* @file spi.h
5
* @brief This file contains all the function prototypes for
6
* the spi.c file
7
******************************************************************************
8
* @attention
9
*
10
* Copyright (c) 2025 STMicroelectronics.
11
* All rights reserved.
12
*
13
* This software is licensed under terms that can be found in the LICENSE file
14
* in the root directory of this software component.
15
* If no LICENSE file comes with this software, it is provided AS-IS.
16
*
17
******************************************************************************
18
*/
19
/* USER CODE END Header */
20
/* Define to prevent recursive inclusion -------------------------------------*/
21
#ifndef __SPI_H__
22
#define __SPI_H__
23
24
#ifdef __cplusplus
25
extern
"C"
{
26
#endif
27
28
/* Includes ------------------------------------------------------------------*/
29
#include "
main.h
"
30
31
/* USER CODE BEGIN Includes */
32
33
/* USER CODE END Includes */
34
35
extern
SPI_HandleTypeDef
hspi1
;
36
37
/* USER CODE BEGIN Private defines */
38
39
/* USER CODE END Private defines */
40
41
/**
42
* @brief Initialise SPI1 peripheral (hspi1) as configured by STM32CubeMX.
43
* Sets clock polarity/phase, data size, baud-rate prescaler, and NSS
44
* management for communication with the AT25EU0041A external flash chip.
45
*/
46
void
MX_SPI1_Init
(
void
);
47
48
/* USER CODE BEGIN Prototypes */
49
/**
50
* @brief Deinitialise SPI1 peripheral to reduce current consumption in low-power mode.
51
* Call before entering STOP or OFF mode; call MX_SPI1_Init() again after wakeup.
52
*/
53
void
MX_SPI1_DeInit
(
void
);
54
/* USER CODE END Prototypes */
55
56
#ifdef __cplusplus
57
}
58
#endif
59
60
#endif
/* __SPI_H__ */
61
main.h
: Header for main.c file. This file contains the common defines of the application.
hspi1
SPI_HandleTypeDef hspi1
Definition
spi.c:27
MX_SPI1_DeInit
void MX_SPI1_DeInit(void)
Deinitialise SPI1 peripheral to reduce current consumption in low-power mode. Call before entering ST...
Definition
spi.c:130
MX_SPI1_Init
void MX_SPI1_Init(void)
Initialise SPI1 peripheral (hspi1) as configured by STM32CubeMX. Sets clock polarity/phase,...
Definition
spi.c:30
Core
Inc
spi.h
Generated by
1.16.1