Commit c7b6acaf authored by Alejandro Homs Puron's avatar Alejandro Homs Puron Committed by operator for beamline
Browse files

Allow clearing Lima and slsReceiver buffers

parent d0013835
......@@ -80,6 +80,8 @@ public:
void setBufferCtrlObj(NumaSoftBufferCtrlObj *buffer_ctrl_obj)
{ m_buffer_ctrl_obj = buffer_ctrl_obj; }
void clearAllBuffers();
void setPixelDepth(PixelDepth pixel_depth);
void getPixelDepth(PixelDepth& pixel_depth);
......
......@@ -58,6 +58,9 @@ public:
SlsDetector::Stats& getStats()
{ return m_stats.stats; }
void clearAllBuffers()
{ m_recv->clearAllBuffers(); }
private:
friend class Camera;
......
......@@ -41,6 +41,8 @@ public:
// void setBufferCtrlObj(NumaSoftBufferCtrlObj *buffer_ctrl_obj);
void clearAllBuffers();
void setPixelDepth(SlsDetector::PixelDepth pixel_depth);
void getPixelDepth(SlsDetector::PixelDepth& pixel_depth /Out/);
......
Subproject commit e28f13a423344f954db2240554cfad528bb51442
Subproject commit 328dc17931b59e66a0f5c1347b35b807f6426bde
......@@ -668,6 +668,15 @@ void Camera::setRecvCPUAffinity(const RecvCPUAffinityList& recv_affinity_list)
}
}
void Camera::clearAllBuffers()
{
getBufferCbMgr()->clearAllBuffers();
RecvList::iterator it, end = m_recv_list.end();
for (it = m_recv_list.begin(); it != end; ++it)
(*it)->clearAllBuffers();
}
void Camera::setPixelDepth(PixelDepth pixel_depth)
{
DEB_MEMBER_FUNCT();
......
......@@ -480,6 +480,9 @@ class SlsDetector(PyTango.Device_4Impl):
self.printPixelDepthCPUAffinityMap(aff_map)
self.cam.setPixelDepthCPUAffinityMap(aff_map)
@Core.DEB_MEMBER_FUNCT
def clearAllBuffers(self):
self.cam.clearAllBuffers()
class SlsDetectorClass(PyTango.DeviceClass):
......@@ -540,6 +543,9 @@ class SlsDetectorClass(PyTango.DeviceClass):
'getStatsHistogram':
[[PyTango.DevString, "recv_idx(-1=all):stats_name"],
[PyTango.DevVarDoubleArray, "[[bin, count], ...]"]],
'clearAllBuffers':
[[PyTango.DevVoid, ""],
[PyTango.DevVoid, ""]],
}
attr_list = {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment