Microchip® Advanced Software Framework

BitBangSPI_Master.h File Reference

This file contains the BitBangSPI Configuration settings.

  • Compiler: IAR EWAVR and GNU GCC for AVR8
  • Supported devices: ATXMEGA128A1
  • Userguide: QTouch Library User Guide - doc8207.pdf.
  • Support: https://www.microchip.com/support/
Author
Microchip Technology Inc: http://www.microchip.com

Macros

#define CPU_SPEED   8
 
#define DELAYUS(DELAY)   __builtin_avr_delay_cycles((DELAY)*CPU_SPEED);
 
Port and Pin Selection

Port and Pin selection for interfacing device to QT600 Bridge

#define SS_BB   4
 
#define SCK_BB   7
 
#define MOSI_BB   5
 
#define MISO_BB   6
 
#define SPI_BB_SS   C
 
#define SPI_BB_SCK   C
 
#define SPI_BB_MOSI   C
 
#define SPI_BB_MISO   C
 

Functions

void BitBangSPI_Master_Init (void)
 BitBangSPI_Master_Init to Initialize BitBangSPI Interface. More...
 
void BitBangSPI_Send_Message (void)
 BitBangSPI_Send_Message to Send and Read one frame using BitBangSPI Interface. More...
 

#define CPU_SPEED   8
#define DELAYUS (   DELAY)    __builtin_avr_delay_cycles((DELAY)*CPU_SPEED);

Referenced by BitBangSPI_Send_Byte().

#define MISO_BB   6
#define MOSI_BB   5
#define SCK_BB   7
#define SPI_BB_MISO   C
#define SPI_BB_MOSI   C
#define SPI_BB_SCK   C
#define SPI_BB_SS   C

Referenced by BitBangSPI_Master_Init().

#define SS_BB   4

Referenced by BitBangSPI_Master_Init().

void BitBangSPI_Master_Init ( void  )

BitBangSPI_Master_Init to Initialize BitBangSPI Interface.

Note
Called from QDebug_Init in QDebug.c

References CONCAT, MISO_BB, MOSI_BB, SCK_BB, SPI_BB_MISO, SPI_BB_MOSI, SPI_BB_SCK, SPI_BB_SS, and SS_BB.

Referenced by QDebug_Init().

void BitBangSPI_Send_Message ( void  )

BitBangSPI_Send_Message to Send and Read one frame using BitBangSPI Interface.

Note
Called from Send_Message in QDebugTransport.c

References BitBangSPI_Send_Byte(), RxHandler(), TX_Buffer, and TX_index.

Referenced by Send_Message().