Arrow3-MBN-APP
 
Loading...
Searching...
No Matches
spi_init.c File Reference

Source that initializes the SPI interface. More...

#include "AppGlobal.h"
Include dependency graph for spi_init.c:

Data Structures

struct  spi_flash_DataXfer
 

Macros

#define SPI_MAX_BUFFER_SIZE   4096
 

Functions

void spi_init (void)
 
int spi_interface_init (void)
 
int LCD_SPI_WRITE (uint8_t data)
 
int SPI_Exchange (struct spi_flash_DataXfer *spixfer)
 
int LCD_SPI_DATAWRITE (uint8_t data)
 
int LCD_SPI_CMDWRITE (uint8_t cmd)
 
int LCD_SPI_BUFFDATAWRITE (uint8_t *data, uint16_t datalen)
 
int LCD_SPI_BUFFWRITE (uint8_t *data, uint16_t datalen)
 
int LCD_SET_DATACMD (char mode)
 Sets the data/cmd line to receive the data nased on the modes.
 

Detailed Description

Source that initializes the SPI interface.

Macro Definition Documentation

◆ SPI_MAX_BUFFER_SIZE

#define SPI_MAX_BUFFER_SIZE   4096

Function Documentation

◆ LCD_SET_DATACMD()

int LCD_SET_DATACMD ( char mode)
extern

Sets the data/cmd line to receive the data nased on the modes.

Parameters
mode[0- command], [1- data]
Returns
API_SUCCESSS_test on success or AP_FAILURE_test on failure
Here is the call graph for this function:
Here is the caller graph for this function:

◆ LCD_SPI_BUFFDATAWRITE()

int LCD_SPI_BUFFDATAWRITE ( uint8_t * data,
uint16_t datalen )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ LCD_SPI_BUFFWRITE()

int LCD_SPI_BUFFWRITE ( uint8_t * data,
uint16_t datalen )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ LCD_SPI_CMDWRITE()

int LCD_SPI_CMDWRITE ( uint8_t cmd)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ LCD_SPI_DATAWRITE()

int LCD_SPI_DATAWRITE ( uint8_t data)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ LCD_SPI_WRITE()

int LCD_SPI_WRITE ( uint8_t data)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SPI_Exchange()

int SPI_Exchange ( struct spi_flash_DataXfer * spixfer)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ spi_init()

void spi_init ( void )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ spi_interface_init()

int spi_interface_init ( void )
Here is the caller graph for this function: