SCAMP-5c SPI Interface  1.0.0
SCAMP-5c is connected to the flight computer via a SPI interface
Data Structures | Macros
scamp5c_spi.hpp File Reference
#include <cstdio>
#include <cstdlib>
#include <cstdint>
#include <utility>
#include <algorithm>
#include <thread>
#include <atomic>
#include <mutex>
#include <list>

Go to the source code of this file.

Data Structures

class  scamp5c_spi
 the object-oriented interface of the spi bus More...
 
class  scamp5c_spi::packet
 the SPI packet class More...
 

Macros

#define RETURN_ERROR(v)   return report_error(__func__,__LINE__,v)
 
#define REPORT_ERROR(v)   report_error(__func__,__LINE__,v)
 
#define REPORT_WARNING(str)   report_warning(__func__,__LINE__,str)
 
#define SPI_PACKET_TYPE_NO_PAYLOAD   0
 
#define SPI_PACKET_TYPE_CONST_SIZE   1
 
#define SPI_PACKET_TYPE_OPEN_SIZE   2
 
#define SPI_PACKET_TYPE_COMMAND   3
 

Detailed Description

Author
Jianing Chen