no-OS
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
stm32_xspi.h
Go to the documentation of this file.
1/***************************************************************************/
33#ifndef STM32_XSPI_H_
34#define STM32_XSPI_H_
35
36#include <stdint.h>
37#include <stdbool.h>
38#include "no_os_spi.h"
39#include "stm32_hal.h"
40
47 uint32_t Instruction;
53 uint32_t Address;
55 uint32_t AddressMode;
57 uint32_t AddressWidth;
65 uint32_t DataMode;
67 uint32_t DataLength;
69 uint32_t DummyCycles;
70};
71
94
125
129extern const struct no_os_spi_platform_ops stm32_xspi_ops;
130
131#endif // STM32_XSPI_H_
Header file of SPI Interface.
const struct no_os_spi_platform_ops stm32_xspi_ops
stm32 platform specific XSPI platform ops structure
Definition stm32_xspi.c:714
Describes the state of a DMA channel.
Definition no_os_dma.h:107
Describes the state of the DMA controller.
Definition no_os_dma.h:136
Initialization parameter for the DMA controller.
Definition no_os_dma.h:171
It's used to setup a generic DMA transfer.
Definition no_os_dma.h:71
Structure holding SPI function pointers that point to the platform specific function.
Definition no_os_spi.h:210
STM32 DMA Channels.
Definition stm32_dma.h:102
Structure holding the stm32 platform specific XSPI command parameters.
Definition stm32_xspi.h:45
uint32_t AlternateBytesMode
Definition stm32_xspi.h:61
uint32_t DataLength
Definition stm32_xspi.h:67
uint32_t AlternateBytes
Definition stm32_xspi.h:59
uint32_t InstructionWidth
Definition stm32_xspi.h:51
uint32_t DataMode
Definition stm32_xspi.h:65
uint32_t AddressWidth
Definition stm32_xspi.h:57
uint32_t Address
Definition stm32_xspi.h:53
uint32_t DummyCycles
Definition stm32_xspi.h:69
uint32_t AlternateBytesWidth
Definition stm32_xspi.h:63
uint32_t Instruction
Definition stm32_xspi.h:47
uint32_t InstructionMode
Definition stm32_xspi.h:49
uint32_t AddressMode
Definition stm32_xspi.h:55
stm32 platform specific XSPI descriptor.
Definition stm32_xspi.h:99
bool sample_shifting
Definition stm32_xspi.h:109
uint32_t fifo_threshold
Definition stm32_xspi.h:107
XSPI_HandleTypeDef hxspi
Definition stm32_xspi.h:101
void * command
Definition stm32_xspi.h:103
uint32_t input_clock
Definition stm32_xspi.h:105
struct no_os_dma_ch * dma_ch
Definition stm32_xspi.h:115
struct no_os_dma_xfer_desc * dma_ch_xfer
Definition stm32_xspi.h:123
bool stm32_xspi_dma_done
Definition stm32_xspi.h:117
void(* stm32_xspi_dma_user_cb)(void *ctx)
Definition stm32_xspi.h:119
uint32_t cs_high_time
Definition stm32_xspi.h:111
struct no_os_dma_desc * dma_desc
Definition stm32_xspi.h:113
void * stm32_xspi_dma_user_ctx
Definition stm32_xspi.h:121
Structure holding the initialization parameters for stm32 platform. specific XSPI parameters.
Definition stm32_xspi.h:77
uint32_t fifo_threshold
Definition stm32_xspi.h:83
bool sample_shifting
Definition stm32_xspi.h:85
uint32_t cs_high_time
Definition stm32_xspi.h:87
struct stm32_xspi_command * cmd
Definition stm32_xspi.h:79
uint32_t irq_num
Definition stm32_xspi.h:92
struct stm32_dma_channel * dma_ch
Definition stm32_xspi.h:91
uint32_t(* get_input_clock)(void)
Definition stm32_xspi.h:81
struct no_os_dma_init_param * dma_init
Definition stm32_xspi.h:89