Microchip® Advanced Software Framework

SPI_Master.h File Reference

This file is used by the QDebug component to initialize, read and write data over the USART SPI mode.

Copyright (c) 2011-2018 Microchip Technology Inc. and its subsidiaries.

#include <stdint.h>

Functions

void SPI_Master_Init (void)
 Initialize the USART in SPI mode. More...
 
uint8_t SPI_Send_Byte (uint8_t c)
 Send and Read one byte using SPI Interface. More...
 
void SPI_Send_Message (void)
 Send and Read one frame using SPI Interface.. More...
 

void SPI_Master_Init ( void  )

Initialize the USART in SPI mode.

Referenced by QDebug_Init().

uint8_t SPI_Send_Byte ( uint8_t  c)

Send and Read one byte using SPI Interface.

Parameters
c,:Data to send to slave.
Returns
uint8_t data: Data read from slave.
Note
Called from SPI_Send_Message in this file.
void SPI_Send_Message ( void  )

Send and Read one frame using SPI Interface..

Note
Called from Send_Message in QDebugTransport.c

Referenced by Send_Message().