1.7. internals
Module¶
Handles communications with the RoboVero.
-
class
robovero.internals.
RoboCaller
¶ Serialize a function and it’s arguments and send to device.
-
call
(function, ret_type, *args)¶
-
-
class
robovero.internals.
Robovero
¶ Bases:
object
Store information about the USB connection to the device.
-
readline
(delim)¶ Get one character at a time until the specified delimiter is found.
-
startListening
()¶ Spawn a new thread to listen for incoming messages.
-
-
class
robovero.internals.
cstruct
(**kwargs)¶ Bases:
object
A parent class for all structs used by the peripheral library.
-
robovero.internals.
deref
(ptr, size, val=None)¶ Dereference a pointer.
-
robovero.internals.
free
(ptr)¶ Free previously allocated memory.
-
robovero.internals.
getIndex
(fcn)¶ Get the table index of a function.
-
robovero.internals.
getReturn
()¶ Get a return value that the listening thread has received.
-
robovero.internals.
getStatus
()¶ Get the error status of the previous function call.
-
robovero.internals.
isr
(IRQn)¶ When an interrupt occurs, call the ISR then clear and reenable the interrupt.
-
robovero.internals.
listen
()¶ Listen for responses and unsolicited messages (interrupts).
-
robovero.internals.
malloc
(size)¶ Allocate memory from the heap.
-
robovero.internals.
resetConfig
()¶ Simulate a reset condition without losing the usb connection.