Bar Logo 3.8/7.6 kw Totem pole Demonstration Application (Part-No. (not specified))
 
Content
     
Loading...
Searching...
No Matches
spi_client_interface.h
1
18/*
19© [2024] Microchip Technology Inc. and its subsidiaries.
20
21 Subject to your compliance with these terms, you may use Microchip
22 software and any derivatives exclusively with Microchip products.
23 You are responsible for complying with 3rd party license terms
24 applicable to your use of 3rd party software (including open source
25 software) that may accompany Microchip software. SOFTWARE IS ?AS IS.?
26 NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS
27 SOFTWARE, INCLUDING ANY IMPLIED WARRANTIES OF NON-INFRINGEMENT,
28 MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT
29 WILL MICROCHIP BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE,
30 INCIDENTAL OR CONSEQUENTIAL LOSS, DAMAGE, COST OR EXPENSE OF ANY
31 KIND WHATSOEVER RELATED TO THE SOFTWARE, HOWEVER CAUSED, EVEN IF
32 MICROCHIP HAS BEEN ADVISED OF THE POSSIBILITY OR THE DAMAGES ARE
33 FORESEEABLE. TO THE FULLEST EXTENT ALLOWED BY LAW, MICROCHIP?S
34 TOTAL LIABILITY ON ALL CLAIMS RELATED TO THE SOFTWARE WILL NOT
35 EXCEED AMOUNT OF FEES, IF ANY, YOU PAID DIRECTLY TO MICROCHIP FOR
36 THIS SOFTWARE.
37*/
38
39#ifndef SPI_CLIENT_INTERFACE_H
40#define SPI_CLIENT_INTERFACE_H
41
42// Section: Included Files
43#include <stdint.h>
44#include <stdbool.h>
45#include <stddef.h>
46
47// Section: Data Type Definitions
48
49
56{
57 void (*Initialize)(void);
59
60 void (*Deinitialize)(void);
62
63 void (*Close)(void);
65
66 bool (*Open)(uint8_t spiConfigIndex);
68
69 uint8_t (*ByteExchange)(uint8_t byteData);
71
72 uint8_t (*ByteRead)(void);
74
75 void (*ByteWrite)(uint8_t byteData);
77
78 bool (*IsRxReady)(void);
80
81 bool (*IsTxReady)(void);
83};
84
85#endif //SPI_CLIENT_INTERFACE_H
86
87
Structure containing the function pointers of SPI CLIENT driver.
bool(* Open)(uint8_t spiConfigIndex)
Pointer to SPIx_Open e.g. SPI1_Open.
bool(* IsRxReady)(void)
Pointer to SPIx_IsRxReady e.g. SPI1_IsRxReady.
bool(* IsTxReady)(void)
Pointer to SPIx_IsTxReady e.g. SPI1_IsTxReady.
uint8_t(* ByteExchange)(uint8_t byteData)
Pointer to SPIx_ByteExchange e.g. SPI1_ByteExchange.
uint8_t(* ByteRead)(void)
Pointer to SPIx_ByteRead e.g. SPI1_ByteRead.
void(* Deinitialize)(void)
Pointer to SPIx_Deinitialize e.g. SPI1_Deinitialize.
void(* ByteWrite)(uint8_t byteData)
Pointer to SPIx_ByteWrite e.g. SPI1_ByteWrite.
void(* Close)(void)
Pointer to SPIx_Close e.g. SPI1_Close.
void(* Initialize)(void)
Pointer to SPIx_Initialize e.g. SPI1_Initialize.