APM:Libraries
Public Member Functions | Public Attributes | List of all members
ChibiOS::SPIBus Class Reference

#include <SPIDevice.h>

Inheritance diagram for ChibiOS::SPIBus:
[legend]
Collaboration diagram for ChibiOS::SPIBus:
[legend]

Public Member Functions

 SPIBus (uint8_t bus)
 
void dma_allocate (Shared_DMA *ctx)
 
void dma_deallocate (Shared_DMA *ctx)
 
- Public Member Functions inherited from ChibiOS::DeviceBus
 DeviceBus (uint8_t _thread_priority=APM_I2C_PRIORITY)
 
AP_HAL::Device::PeriodicHandle register_periodic_callback (uint32_t period_usec, AP_HAL::Device::PeriodicCb, AP_HAL::Device *hal_device)
 
bool adjust_timer (AP_HAL::Device::PeriodicHandle h, uint32_t period_usec)
 
void bouncebuffer_setup (const uint8_t *&buf_tx, uint16_t tx_len, uint8_t *&buf_rx, uint16_t rx_len)
 
void bouncebuffer_setup_tx (const uint8_t *&buf_tx, uint16_t tx_len)
 
void bouncebuffer_setup_rx (uint8_t *&buf_rx, uint16_t rx_len)
 
void bouncebuffer_rx_copy (uint8_t *buf_rx, uint16_t rx_len)
 

Public Attributes

struct spi_dev_s * dev
 
uint8_t bus
 
SPIConfig spicfg
 
bool spi_started
 
- Public Attributes inherited from ChibiOS::DeviceBus
struct DeviceBusnext
 
Semaphore semaphore
 
Shared_DMAdma_handle
 

Additional Inherited Members

- Static Public Member Functions inherited from ChibiOS::DeviceBus
static void bus_thread (void *arg)
 

Detailed Description

Definition at line 28 of file SPIDevice.h.

Constructor & Destructor Documentation

◆ SPIBus()

SPIBus::SPIBus ( uint8_t  bus)

Definition at line 57 of file SPIDevice.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ dma_allocate()

void SPIBus::dma_allocate ( Shared_DMA ctx)

Definition at line 72 of file SPIDevice.cpp.

Referenced by SPIBus().

Here is the caller graph for this function:

◆ dma_deallocate()

void SPIBus::dma_deallocate ( Shared_DMA ctx)

Definition at line 80 of file SPIDevice.cpp.

Referenced by SPIBus().

Here is the caller graph for this function:

Member Data Documentation

◆ bus

uint8_t ChibiOS::SPIBus::bus

◆ dev

struct spi_dev_s* ChibiOS::SPIBus::dev

Definition at line 31 of file SPIDevice.h.

◆ spi_started

bool ChibiOS::SPIBus::spi_started

Definition at line 36 of file SPIDevice.h.

Referenced by ChibiOS::SPIDevice::acquire_bus(), and dma_deallocate().

◆ spicfg

SPIConfig ChibiOS::SPIBus::spicfg

Definition at line 33 of file SPIDevice.h.

Referenced by ChibiOS::SPIDevice::acquire_bus().


The documentation for this class was generated from the following files: