|
|
|
|
|
get_received_reports(self)
return a list of received reports (removes them from the
queue) |
source code
|
|
|
clear_received_reports(self)
remove all received reports from the queue |
source code
|
|
|
add_callback(self,
report_id,
report_callback)
add a callback function that will be called when a report with the
given id arrives. |
source code
|
|
|
remove_callback(self,
report_id,
report_callback) |
source code
|
|
|
add_default_callback(self,
report_callback) |
source code
|
|
|
remove_default_callback(self,
report_callback) |
source code
|
|
|
wait_for_report(self,
report_id)
blocks until we receive a report with the given id from the box
and then returns it (may trigger other callbacks) |
source code
|
|
|
send_wait_reply(self,
command_id,
report_id,
*args)
send a command with the given arguments and wait for the reply |
source code
|
|
|
send_wait_field(self,
command_id,
report_id,
field_name,
*args)
send a command (with the args), wait for the report and return the
field on the report |
source code
|
|
|
__getattr__(self,
name)
return a function to send the named command to the device |
source code
|
|