APM:Libraries
Classes | Namespaces | Macros | Variables
SPIDevice.cpp File Reference
#include "SPIDevice.h"
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <linux/spi/spidev.h>
#include <stdio.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <vector>
#include <AP_HAL/AP_HAL.h>
#include <AP_HAL/utility/OwnPtr.h>
#include "GPIO.h"
#include "PollerThread.h"
#include "Scheduler.h"
#include "Semaphores.h"
#include "Thread.h"
#include "Util.h"
Include dependency graph for SPIDevice.cpp:

Go to the source code of this file.

Classes

struct  Linux::SPIDesc
 
class  Linux::SPIBus
 

Namespaces

 Linux
 

Macros

#define MHZ   (1000U*1000U)
 
#define KHZ   (1000U)
 
#define SPI_CS_KERNEL   -1
 
#define LINUX_SPI_DEVICE_NUM_DEVICES   ARRAY_SIZE(SPIDeviceManager::_device)
 

Variables

static const AP_HAL::HALLinux::hal = AP_HAL::get_HAL()
 

Macro Definition Documentation

◆ KHZ

#define KHZ   (1000U)

Definition at line 45 of file SPIDevice.cpp.

◆ LINUX_SPI_DEVICE_NUM_DEVICES

#define LINUX_SPI_DEVICE_NUM_DEVICES   ARRAY_SIZE(SPIDeviceManager::_device)

Definition at line 153 of file SPIDevice.cpp.

◆ MHZ

#define MHZ   (1000U*1000U)

Definition at line 44 of file SPIDevice.cpp.

◆ SPI_CS_KERNEL

#define SPI_CS_KERNEL   -1