Bar Logo 3.8/7.6 kw Totem pole Demonstration Application (Part-No. (not specified))
 
Content
     
Loading...
Searching...
No Matches

This is the generated driver source file for SPI1 driver. More...

#include <xc.h>
#include "../spi1.h"
+ Include dependency graph for spi1.c:

Go to the source code of this file.

Data Structures

struct  SPI1_CLIENT_CONFIG
 

Macros

#define SPI1_DUMMY_DATA   0x0
 Dummy data to be sent for half duplex communication.
 

Functions

void SPI1_Initialize (void)
 Initializes SPI1 module, using the given initialization data. This function must be called before any other SPI1 function is called.
 
void SPI1_Deinitialize (void)
 Deinitializes the SPI1 to POR values.
 
void SPI1_Close (void)
 Disables the SPI1 module.
 
bool SPI1_Open (uint8_t spiConfigIndex)
 Configures SPI1 module with user defined unique configuration.
 
uint8_t SPI1_ByteExchange (uint8_t byteData)
 Exchanges one byte of data. This is a blocking function.
 
void SPI1_ByteWrite (uint8_t byteData)
 Writes one byte of data.
 
uint8_t SPI1_ByteRead (void)
 Reads one byte of data from SPI1.
 
bool SPI1_IsRxReady (void)
 Returns a boolean value if data is available to read.
 
bool SPI1_IsTxReady (void)
 Returns a boolean value if data can be written.
 

Variables

const struct SPI_CLIENT_INTERFACE SPI1_Client
 Structure object of type SPI_CLIENT_INTERFACE assigned with name displayed in the Melody Driver User interface. A structure pointer can be used to achieve portability across the SPI CLIENT having same interface structure.
 
static const struct SPI1_CLIENT_CONFIG config []
 

Detailed Description

SPI1 Generated Driver Source File

Definition in file spi1.c.

Macro Definition Documentation

◆ SPI1_DUMMY_DATA

#define SPI1_DUMMY_DATA   0x0

Definition at line 49 of file spi1.c.

Variable Documentation

◆ config

const struct SPI1_CLIENT_CONFIG config[]
static
Initial value:
= {
{
0xc1,
},
}

Definition at line 76 of file spi1.c.