Coverage for ratbag_emu/firmware.py : 83%
 
         
         
    Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
| # SPDX-License-Identifier: MIT 
 
 
 from ratbag_emu.device import Device # pragma: no cover 
 
 ''' Represents the firmware of the device 
 This is the "brain" of the device, it is here where we custom logic is implemented. ''' 
 
 endpoint: int): ''' Receive data 
 Callback called when we receive a HID report. 
 :param data: Received data :param size: Received data size :param rtype: Report type :param endpoint: Endpoint number ''' return 
 ''' Send data to endpoint 
 Routine used to send a HID report to a certain endpoint. Feel free to overwrite this and hardcode the endpoint number. 
 :param data: Data to send :param endpoint: Endpoint number ''' self._owner.endpoints[endpoint].send(data) |