PX4 Firmware
PX4 Autopilot Software http://px4.io
simulator::Report< RType > Class Template Reference

#include <simulator.h>

Collaboration diagram for simulator::Report< RType >:

Public Member Functions

 Report (int readers)
 
 ~Report ()
 
bool copyData (void *outbuf, int len)
 
void writeData (void *inbuf)
 

Protected Member Functions

void read_lock ()
 
void read_unlock ()
 
void write_lock ()
 
void write_unlock ()
 

Protected Attributes

int _readidx
 
px4_sem_t _lock
 
const int _max_readers
 
const int _report_len
 
RType _buf [2]
 

Detailed Description

template<typename RType>
class simulator::Report< RType >

Definition at line 97 of file simulator.h.

Constructor & Destructor Documentation

◆ Report()

template<typename RType>
simulator::Report< RType >::Report ( int  readers)
inline

Definition at line 100 of file simulator.h.

◆ ~Report()

template<typename RType>
simulator::Report< RType >::~Report ( )
inline

Definition at line 109 of file simulator.h.

Member Function Documentation

◆ copyData()

template<typename RType>
bool simulator::Report< RType >::copyData ( void *  outbuf,
int  len 
)
inline

Definition at line 111 of file simulator.h.

◆ read_lock()

template<typename RType>
void simulator::Report< RType >::read_lock ( )
inlineprotected

Definition at line 131 of file simulator.h.

◆ read_unlock()

template<typename RType>
void simulator::Report< RType >::read_unlock ( )
inlineprotected

Definition at line 132 of file simulator.h.

◆ write_lock()

template<typename RType>
void simulator::Report< RType >::write_lock ( )
inlineprotected

Definition at line 133 of file simulator.h.

◆ write_unlock()

template<typename RType>
void simulator::Report< RType >::write_unlock ( )
inlineprotected

Definition at line 139 of file simulator.h.

◆ writeData()

template<typename RType>
void simulator::Report< RType >::writeData ( void *  inbuf)
inline

Definition at line 122 of file simulator.h.

Member Data Documentation

◆ _buf

template<typename RType>
RType simulator::Report< RType >::_buf[2]
protected

Definition at line 150 of file simulator.h.

◆ _lock

template<typename RType>
px4_sem_t simulator::Report< RType >::_lock
protected

Definition at line 147 of file simulator.h.

◆ _max_readers

template<typename RType>
const int simulator::Report< RType >::_max_readers
protected

Definition at line 148 of file simulator.h.

◆ _readidx

template<typename RType>
int simulator::Report< RType >::_readidx
protected

Definition at line 146 of file simulator.h.

◆ _report_len

template<typename RType>
const int simulator::Report< RType >::_report_len
protected

Definition at line 149 of file simulator.h.


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