#include <LaserDevice.h>
Public Member Functions | |
| LaserDevice (std::string serial_port) | |
| ~LaserDevice () | |
| bool | EstablishCommunication () |
| bool | ReadLaserData (unsigned short *data, unsigned long datalen) |
| int | SetLaserMeasurement (eMeasurementMode eMeasureMode, bool bIntensity) |
| bool | SetLaserResolution (int width, int res) |
| bool | SetLaserSpeed (int speed) |
| bool | StartDataAcquisition () |
| bool | StopDataAcquisition () |
Private Member Functions | |
| int | SetSerialBaudrate (int nBaudrate) |
| unsigned short | CreateCRC (unsigned char *data, unsigned long len) |
| void | End_session (int fd) |
| int | Port_initialisation (const char *serial_port) |
| int | ReadFromLaser (unsigned char *data, unsigned long maxLen, bool ack, bool timeout) |
| void | Receive () |
| bool | SetLaserMode () |
| int | WriteToLaser (unsigned char *data, unsigned long len) |
Private Attributes | |
| int | m_Laser_fd |
| int | m_killed |
| unsigned short * | m_pLastDataBuffer |
| pthread_t | m_Receiving_thread |
| pthread_mutex_t | m_list_lock |
| std::list< std::string > | m_received |
Friends | |
| void * | receive_threadLaser (void *myLaser) |
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||||||
|
|
|
||||||||||||
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.4