APM:Libraries
Classes | Namespaces | Macros | Typedefs | Enumerations
SPIDevice.h File Reference
#include <AP_HAL/HAL.h>
#include "Semaphores.h"
#include "Scheduler.h"
#include <dma.h>
#include <spi.h>
Include dependency graph for SPIDevice.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  F4Light::spi_pins
 
struct  F4Light::SPIDESC
 
class  F4Light::SPIDevice
 
class  F4Light::SPIDeviceManager
 

Namespaces

 F4Light
 -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
 

Macros

#define MAX_BUS_NUM   3
 
#define SPI_BUFFER_SIZE   512
 

Typedefs

typedef enum F4Light::SPIFrequency F4Light::SPIFrequency
 
typedef uint8_t(* F4Light::spi_WaitFunc) (uint8_t b)
 
typedef enum F4Light::SPI_TRANSFER_MODE F4Light::SPI_transferMode
 
typedef struct F4Light::SPIDESC F4Light::SPIDesc
 

Enumerations

enum  F4Light::SPIFrequency {
  F4Light::SPI_18MHZ = 0, F4Light::SPI_9MHZ = 1, F4Light::SPI_4_5MHZ = 2, F4Light::SPI_2_25MHZ = 3,
  F4Light::SPI_1_125MHZ = 4, F4Light::SPI_562_500KHZ = 5, F4Light::SPI_281_250KHZ = 6, F4Light::SPI_140_625KHZ = 7,
  F4Light::SPI_36MHZ = 8
}
 
enum  F4Light::SPI_TRANSFER_MODE { F4Light::SPI_TRANSFER_POLL =0, F4Light::SPI_TRANSFER_DMA, F4Light::SPI_TRANSFER_INTR, F4Light::SPI_TRANSFER_SOFT }
 
enum  F4Light::SPI_ISR_MODE {
  F4Light::SPI_ISR_NONE, F4Light::SPI_ISR_SEND, F4Light::SPI_ISR_SEND_DMA, F4Light::SPI_ISR_SKIP_RX,
  F4Light::SPI_ISR_SKIP_RX_DMA, F4Light::SPI_ISR_WAIT_RX, F4Light::SPI_ISR_WAIT_RX_DMA, F4Light::SPI_ISR_RECEIVE,
  F4Light::SPI_ISR_RXTX, F4Light::SPI_ISR_STROBE, F4Light::SPI_ISR_COMPARE, F4Light::SPI_ISR_FINISH
}
 

Macro Definition Documentation

◆ MAX_BUS_NUM

#define MAX_BUS_NUM   3

Definition at line 34 of file SPIDevice.h.

Referenced by F4Light::SPIDevice::get_semaphore().

◆ SPI_BUFFER_SIZE

#define SPI_BUFFER_SIZE   512