MCPcopy Index your code
hub / github.com/ARM-software/AVH / get

Method get

interface/sensor/python/vsi_sensor.py:207–221  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

205 return byte
206
207 def get(self):
208 logger.info("Get byte from FIFO")
209
210 # Check if buffer is already empty
211 if self.count == 0:
212 logger.info("FIFO is empty")
213 return None
214 else:
215 byte = self.data[self.idx_get]
216 logger.debug(f"Byte {byte} extracted from position {self.idx_get}")
217 self.idx_get = (self.idx_get + 1) % self.buff_size
218 self.count -= 1
219 if self.count < self.threshold_size:
220 self.threshold = 0
221 return byte
222
223
224# User registers

Callers 15

_scan_video_devicesMethod · 0.80
_enableStreamMethod · 0.80
_scan_video_devicesMethod · 0.80
_enableStreamMethod · 0.80
_scan_video_devicesMethod · 0.80
_enableStreamMethod · 0.80
_scan_video_devicesMethod · 0.80
_enableStreamMethod · 0.80
_scan_video_devicesMethod · 0.80
_enableStreamMethod · 0.80
_scan_video_devicesMethod · 0.80
_enableStreamMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected