libpandac  0.0.0
A library designed for a comm.ai Panda.
Public Member Functions | List of all members
Panda::Usb Class Reference
Inheritance diagram for Panda::Usb:
Inheritance graph
Collaboration diagram for Panda::Usb:
Collaboration graph

Public Member Functions

 Usb (UsbMode mode=MODE_ASYNCHRONOUS)
 
void initialize ()
 
void addObserver (UsbListener *listener)
 
int sendCanData (unsigned char *buffer, int length)
 
void requestCanData ()
 
void requestUartData ()
 
bool hasGpsSupport ()
 
void uartWrite (const char *buffer, int length)
 
void uartPurge ()
 
void canPurge ()
 
void setUartBaud (int uart, int baud)
 
void setUartParity (int uart, int parity)
 
void setEspPower (bool enable)
 
void espReset (int uart, int bootmode=0)
 
void getPandaSerial (unsigned char *serial16)
 
void setCanLoopback (int enable)
 
void getFirmware (unsigned char *firmware128)
 
unsigned char getHardware ()
 
struct tm getRtc ()
 
void setSafetyMode (uint16_t mode)
 
void sendHeartBeat ()
 
void setPowerSaveEnable (bool enable)
 
void setOperatingMode (UsbMode mode)
 
const char * getModeAsString () const
 
std::string getUsbSerialNumber ()
 
void getHealth (PandaHealth *health)
 
void startRecording ()
 
void stopRecording ()
 

Additional Inherited Members

- Protected Member Functions inherited from Mogi::Thread
virtual void exitAction ()
 Called once when thread is commanded to stop. More...
 
void checkSuspend ()
 Blocks the thread from a pause() call until resume() is called.
 
bool start ()
 Starts the internal thread method. More...
 
void stop ()
 Stops the internal thread method. More...
 
void WaitForInternalThreadToExit ()
 Will wait until the thread has finished.
 
int lock ()
 Performs a mutual exclusion lock. Will halt if locked by another thread, and will resume when the other thread performs an unlock. More...
 
int unlock ()
 Performs a mutual exclusion unlock. Will allow other threads that have been locked to resume. More...
 
void pause ()
 Performs a pause. More...
 
void resume ()
 Resumes the thread from a pause. More...
 
bool running ()
 Returns the state of the thread. More...
 

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