L14-Click 1.0
STM32WLE5CC LoRaWAN Sensor Platform
Loading...
Searching...
No Matches
spi.h File Reference

This file contains all the function prototypes for the spi.c file. More...

#include "main.h"
Include dependency graph for spi.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void MX_SPI1_Init (void)
 Initialise SPI1 peripheral (hspi1) as configured by STM32CubeMX. Sets clock polarity/phase, data size, baud-rate prescaler, and NSS management for communication with the AT25EU0041A external flash chip.
void MX_SPI1_DeInit (void)
 Deinitialise SPI1 peripheral to reduce current consumption in low-power mode. Call before entering STOP or OFF mode; call MX_SPI1_Init() again after wakeup.

Variables

SPI_HandleTypeDef hspi1

Detailed Description

This file contains all the function prototypes for the spi.c file.

Attention

Copyright (c) 2025 STMicroelectronics. All rights reserved.

This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.

Definition in file spi.h.

Function Documentation

◆ MX_SPI1_DeInit()

void MX_SPI1_DeInit ( void )

Deinitialise SPI1 peripheral to reduce current consumption in low-power mode. Call before entering STOP or OFF mode; call MX_SPI1_Init() again after wakeup.

Deinitialise SPI1 peripheral to reduce current consumption in low-power mode. Call before entering STOP or OFF mode; call MX_SPI1_Init() again after wakeup.

Definition at line 130 of file spi.c.

References hspi1.

Referenced by PWR_EnterOffMode(), and PWR_EnterStopMode().

Here is the caller graph for this function:

◆ MX_SPI1_Init()

void MX_SPI1_Init ( void )

Initialise SPI1 peripheral (hspi1) as configured by STM32CubeMX. Sets clock polarity/phase, data size, baud-rate prescaler, and NSS management for communication with the AT25EU0041A external flash chip.

Definition at line 30 of file spi.c.

References Error_Handler(), and hspi1.

Referenced by main(), and PWR_ExitStopMode().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ hspi1

SPI_HandleTypeDef hspi1
extern

Definition at line 27 of file spi.c.

Referenced by MX_SPI1_DeInit(), and MX_SPI1_Init().