IM920地温観測システム CQ 2017ARMセミナー用サンプルプログラム
Dependencies: C027_Support_ForIM920
Fork of C027_SupportTest by
RingBuf Class Reference
プロトンデータとタイムスタンプを保持するリングバッファclass More...
#include <RingBuf.h>
Public Member Functions | |
void | push (RingBufType *d) |
リングバッファにデータを1つpush | |
RingBufType * | pop (void) |
リングバッファからデータを1つpop | |
int | len_get (void) |
バッファ内にある読み出し可能なデータ数を返す | |
int | size_get (void) |
バッファ全体のサイズを返す | |
void | clear () |
バッファをクリアする | |
RingBufType * | peek (int p) |
リングバッファから指定位置のデータを1得る | |
Data Fields | |
volatile int | latest |
最新のデータ位置 |
Detailed Description
プロトンデータとタイムスタンプを保持するリングバッファclass
Definition at line 21 of file RingBuf.h.
Member Function Documentation
void clear | ( | void | ) |
バッファをクリアする
Definition at line 40 of file RingBuf.cpp.
int len_get | ( | void | ) |
バッファ内にある読み出し可能なデータ数を返す
Definition at line 30 of file RingBuf.cpp.
RingBufType * peek | ( | int | p ) |
リングバッファから指定位置のデータを1得る
- Returns:
- データ構造体へのpointerを返す。データが無い時はNULLを返す。
Definition at line 45 of file RingBuf.cpp.
RingBufType * pop | ( | void | ) |
リングバッファからデータを1つpop
- Returns:
- データ構造体へのpointerを返す。データが無い時はNULLを返す。
Definition at line 23 of file RingBuf.cpp.
void push | ( | RingBufType * | d ) |
int size_get | ( | void | ) |
バッファ全体のサイズを返す
Definition at line 36 of file RingBuf.cpp.
Field Documentation
Generated on Wed Jul 13 2022 01:06:47 by 1.7.2