示例#1
0
 def _init_lib():
     # REMOVED IN 0.8.6.2
     #init_func('get_mac_address', ctypes.c_uint64, myo_t)
     init_func('vibrate', result_t,
             myo_t, vibration_type_t, asptr(error_details_t))
     init_func('request_rssi', result_t, myo_t, asptr(error_details_t))
     init_func('set_stream_emg', result_t, myo_t, stream_emg, asptr(error_details_t))
示例#2
0
    def _init_lib():
        init_func('init_hub', result_t,
                asptr(hub_t), asptr(error_details_t))
        init_func('shutdown_hub', result_t,
                hub_t, asptr(error_details_t))
# REMOVED IN 0.8.6.2
#         init_func('pair_any', result_t,
#                 hub_t, ctypes.c_uint, asptr(error_details_t))
#         init_func('pair_by_mac_address', result_t,
#                 hub_t, ctypes.c_uint64, asptr(error_details_t))
#         init_func('pair_adjacent', result_t,
#                 hub_t, ctypes.c_uint, asptr(error_details_t))
        init_func('run', result_t,
                hub_t, ctypes.c_uint, handler_t, ctypes.py_object, error_details_t)
示例#3
0
    def _init_lib():
        init_func('init_hub', result_t, asptr(hub_t), asptr(error_details_t))
        # libmyo_result_t libmyo_shutdown_hub(libmyo_hub_t hub, libmyo_error_details_t* out_error);
        init_func('shutdown_hub', result_t, hub_t, asptr(error_details_t))
        #Added in beta 7
        init_func('set_locking_policy', result_t, hub_t, locking_policy_t,
                  asptr(error_details_t))

        # REMOVED IN 0.8.6.2
        #         init_func('pair_any', result_t,
        #                 hub_t, ctypes.c_uint, asptr(error_details_t))
        #         init_func('pair_by_mac_address', result_t,
        #                 hub_t, ctypes.c_uint64, asptr(error_details_t))
        #         init_func('pair_adjacent', result_t,
        #                 hub_t, ctypes.c_uint, asptr(error_details_t))
        init_func('run', result_t, hub_t, ctypes.c_uint, handler_t,
                  ctypes.py_object, error_details_t)
示例#4
0
    def _init_lib():
        init_func('init_hub', result_t,
                asptr(hub_t), asptr(error_details_t))
        # libmyo_result_t libmyo_shutdown_hub(libmyo_hub_t hub, libmyo_error_details_t* out_error);
        init_func('shutdown_hub', result_t,
                hub_t, asptr(error_details_t))
        #Added in beta 7
        init_func('set_locking_policy', result_t, hub_t, locking_policy_t, asptr(error_details_t) )

# REMOVED IN 0.8.6.2
#         init_func('pair_any', result_t,
#                 hub_t, ctypes.c_uint, asptr(error_details_t))
#         init_func('pair_by_mac_address', result_t,
#                 hub_t, ctypes.c_uint64, asptr(error_details_t))
#         init_func('pair_adjacent', result_t,
#                 hub_t, ctypes.c_uint, asptr(error_details_t))
        init_func('run', result_t,
                hub_t, ctypes.c_uint, handler_t, ctypes.py_object, error_details_t)