Tezzeret  1
Tezzeret
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
Geometrics::GmUartLineSensor Class Referenceabstract
Inheritance diagram for Geometrics::GmUartLineSensor:
Inheritance graph
[legend]
Collaboration diagram for Geometrics::GmUartLineSensor:
Collaboration graph
[legend]

Public Member Functions

 GmUartLineSensor (UInt8 iSubject, int iLineLength, int iMaxBuffered, GmManagedArrayRingBuffer< uint8_t, GM_SIZE_OF_APP_DATA_QUEUE > *mainEventQueue)
 
 GmUartLineSensor (UInt8 iSubject, int iLineLength, int iMaxBuffered, int iCustomRecordSize, GmManagedArrayRingBuffer< uint8_t, GM_SIZE_OF_APP_DATA_QUEUE > *mainEventQueue)
 
 GmUartLineSensor (UInt8 iSubject, int iLineLength, int iMaxBuffered, int iCustomRecordSize, UInt8 *puiBuffer, UInt32 uiBufferSize, GmManagedArrayRingBuffer< uint8_t, GM_SIZE_OF_APP_DATA_QUEUE > *mainEventQueue)
 
virtual int Initialize (int iBoardID)=0
 
int Start ()
 
Void UartReadLoop ()
 
int WriteData (const char *pcData, unsigned int iDataSize, UInt32 ui32Topic)
 
- Public Member Functions inherited from Geometrics::GmBufferedSensor
 GmBufferedSensor (UInt8 iSubjectId, int iRingCount, int iDataSize, GmManagedArrayRingBuffer< uint8_t, GM_SIZE_OF_APP_DATA_QUEUE > *mainEventQueue)
 Constructor for derived classes, when it's OK to allocate a local buffer dynamically. More...
 
 GmBufferedSensor (UInt8 iSubjectId, int iRingCount, int iDataSize, UInt8 *puiBuffer, UInt32 uiBufferSize, GmManagedArrayRingBuffer< uint8_t, GM_SIZE_OF_APP_DATA_QUEUE > *mainEventQueue)
 Constructor used by most derived classes on memory-constrained systems. In this case the derived class provides a buffer, usually static, so that the buffer doesn't need to be allocated dynamically. More...
 
int Start ()
 
int ResetBuffers ()
 
Bool HasData ()
 
int ReadRecord (char *pcDestination, int iSize)
 The main interface for consumers of a sensors data to get that data. It simply copies the data in the sensor's buffer into the caller's buffer. It is up to the caller to know what to do with that data, and how to free any local memory. (This function should have been name ReadNextRecord)
 
virtual int DeleteNextRecord ()
 DeleteNextRecord allows a caller to discard the next record without retrieving it. The subclasses that implement DeleteNextRecord must be able to deal with any memory that needs to be freed, or other such concerns.
 
- Public Member Functions inherited from Geometrics::GmEventSource
virtual int WriteToStorage (UInt32 ui32Topic, char *pData, UInt32 iSize, GmStorage *psStorage, UInt32 ui32FormatId)=0
 
void SetSensorId (int iSensorId)
 
int GetSensorId ()
 
- Public Member Functions inherited from Geometrics::GmStorage
virtual int Close (int iFileIndex)
 
virtual int EnterTransaction ()
 
virtual int LeaveTransaction ()
 
virtual int RollAndSynchFile ()
 
virtual int SelectSurveyEx (const char *strSurveyId)
 
virtual int IsDataStorage ()
 
virtual int GetLastError ()
 
virtual bool IsOpen ()
 
void SetDatasetId (const int iDataset)
 
int GetDatasetId (bool increment)
 
virtual int Shutdown ()
 

Static Public Member Functions

static int InitUarts (int iMaxUarts)
 
- Static Public Member Functions inherited from Geometrics::GmStorage
static int DecodeDownloadName (const char *szDownloadName, char *strSurveyId, char *strAcquisitionId, char *strFileName)
 

Public Attributes

Bool m_bPing
 
Bool m_bCustomRecord
 
UART_Handle m_uhUartHandle
 
static int m_static_iMaxUarts = 0
 
static int m_static_iNextUart = 0
 
- Public Attributes inherited from Geometrics::GmBufferedSensor
CChildRingBufferm_rbBuffer
 The local buffer into which the sensor or event source stores each of its events or measurements. When an item is committed to this buffer, it also adds an event (consisting of the sensor's subject ID) into the application main event queue. The full event or measurement remains here, until the application reads the subject ID out of the main queue and then asks this sensor object for the full information by calling ReadRecord.
 
UInt8 m_iSubjectId
 

Static Public Attributes

static GmUartLineSensor ** m_static_aulsUarts = NULL
 
- Static Public Attributes inherited from Geometrics::GmStorage
static int s_recordsPerFile = BLOCKS_PER_ACQUISITION_DATA_FILE
 

Protected Member Functions

void PauseRead ()
 
void UnpauseRead ()
 
virtual Void OnPreProcessUartString (char *pscString)
 
virtual int ConvertToCustomRecord (UInt8 *pscUartData, UInt8 *pcCustomRecordBuffer)
 

Protected Attributes

Task_Handle m_thTask
 
bool m_boolInitialized
 
bool m_bReadPaused
 
int m_iLineLength
 
int m_iPrefixLength
 
int m_iCustomRecordSize
 
GeoIndexedStringWithHeaderm_pgiswhBuffer
 
int m_iIndexThisUart
 
UInt8 * m_caCustomRecordBuffer
 
- Protected Attributes inherited from Geometrics::GmEventSource
int m_iSensorId
 
- Protected Attributes inherited from Geometrics::GmStorage
bool m_bIsOpen
 
int m_iCurrentDataSetId
 
bool mIncrementDatasetId
 

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