2022-02-17 17:59:09 +00:00
|
|
|
// Include MicroPython API.
|
|
|
|
#include "py/runtime.h"
|
|
|
|
|
|
|
|
/***** Extern of Class Definition *****/
|
2022-02-18 18:15:15 +00:00
|
|
|
extern const mp_obj_type_t Calibration_type;
|
2022-02-17 17:59:09 +00:00
|
|
|
extern const mp_obj_type_t Servo_type;
|
|
|
|
extern const mp_obj_type_t ServoCluster_type;
|
|
|
|
|
|
|
|
/***** Extern of Class Methods *****/
|
2022-02-18 18:15:15 +00:00
|
|
|
extern void Calibration_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind);
|
|
|
|
extern mp_obj_t Calibration_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *all_args);
|
|
|
|
extern mp_obj_t Calibration___del__(mp_obj_t self_in);
|
2022-03-22 14:21:10 +00:00
|
|
|
extern mp_obj_t Calibration_apply_blank_pairs(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
|
|
|
extern mp_obj_t Calibration_apply_two_pairs(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
|
|
|
extern mp_obj_t Calibration_apply_three_pairs(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
|
|
|
extern mp_obj_t Calibration_apply_uniform_pairs(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
|
|
|
extern mp_obj_t Calibration_apply_default_pairs(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
2022-02-18 18:15:15 +00:00
|
|
|
extern mp_obj_t Calibration_size(mp_obj_t self_in);
|
2022-03-22 14:21:10 +00:00
|
|
|
extern mp_obj_t Calibration_pair(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
|
|
|
extern mp_obj_t Calibration_pulse(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
|
|
|
extern mp_obj_t Calibration_value(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
|
|
|
extern mp_obj_t Calibration_first(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
2022-03-21 23:51:15 +00:00
|
|
|
extern mp_obj_t Calibration_first_pulse(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
|
|
|
extern mp_obj_t Calibration_first_value(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
2022-03-22 14:21:10 +00:00
|
|
|
extern mp_obj_t Calibration_last(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
2022-03-21 23:51:15 +00:00
|
|
|
extern mp_obj_t Calibration_last_pulse(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
|
|
|
extern mp_obj_t Calibration_last_value(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
2022-03-08 14:26:57 +00:00
|
|
|
extern mp_obj_t Calibration_has_lower_limit(mp_obj_t self_in);
|
|
|
|
extern mp_obj_t Calibration_has_upper_limit(mp_obj_t self_in);
|
2022-02-18 18:15:15 +00:00
|
|
|
extern mp_obj_t Calibration_limit_to_calibration(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
|
|
|
extern mp_obj_t Calibration_value_to_pulse(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
2022-02-19 20:13:18 +00:00
|
|
|
extern mp_obj_t Calibration_pulse_to_value(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
2022-02-18 18:15:15 +00:00
|
|
|
|
2022-02-17 17:59:09 +00:00
|
|
|
extern void Servo_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind);
|
|
|
|
extern mp_obj_t Servo_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *all_args);
|
|
|
|
extern mp_obj_t Servo___del__(mp_obj_t self_in);
|
2022-02-18 18:15:15 +00:00
|
|
|
extern mp_obj_t Servo_pin(mp_obj_t self_in);
|
2022-02-17 17:59:09 +00:00
|
|
|
extern mp_obj_t Servo_enable(mp_obj_t self_in);
|
|
|
|
extern mp_obj_t Servo_disable(mp_obj_t self_in);
|
|
|
|
extern mp_obj_t Servo_is_enabled(mp_obj_t self_in);
|
|
|
|
extern mp_obj_t Servo_pulse(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
2022-03-08 14:26:57 +00:00
|
|
|
extern mp_obj_t Servo_value(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
2022-02-19 01:07:19 +00:00
|
|
|
extern mp_obj_t Servo_frequency(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
2022-02-18 18:15:15 +00:00
|
|
|
extern mp_obj_t Servo_min_value(mp_obj_t self_in);
|
|
|
|
extern mp_obj_t Servo_mid_value(mp_obj_t self_in);
|
|
|
|
extern mp_obj_t Servo_max_value(mp_obj_t self_in);
|
2022-02-17 17:59:09 +00:00
|
|
|
extern mp_obj_t Servo_to_min(mp_obj_t self_in);
|
|
|
|
extern mp_obj_t Servo_to_mid(mp_obj_t self_in);
|
|
|
|
extern mp_obj_t Servo_to_max(mp_obj_t self_in);
|
|
|
|
extern mp_obj_t Servo_to_percent(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
2022-03-08 16:54:20 +00:00
|
|
|
extern mp_obj_t Servo_calibration(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
2022-02-17 17:59:09 +00:00
|
|
|
|
|
|
|
extern void ServoCluster_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind);
|
|
|
|
extern mp_obj_t ServoCluster_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *all_args);
|
|
|
|
extern mp_obj_t ServoCluster___del__(mp_obj_t self_in);
|
2022-03-08 14:26:57 +00:00
|
|
|
extern mp_obj_t ServoCluster_count(mp_obj_t self_in);
|
|
|
|
extern mp_obj_t ServoCluster_pin(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
2022-02-18 18:15:15 +00:00
|
|
|
extern mp_obj_t ServoCluster_enable(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
2022-03-10 17:09:06 +00:00
|
|
|
extern mp_obj_t ServoCluster_enable_all(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
2022-02-18 18:15:15 +00:00
|
|
|
extern mp_obj_t ServoCluster_disable(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
2022-03-10 17:09:06 +00:00
|
|
|
extern mp_obj_t ServoCluster_disable_all(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
2022-02-18 18:15:15 +00:00
|
|
|
extern mp_obj_t ServoCluster_is_enabled(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
|
|
|
extern mp_obj_t ServoCluster_pulse(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
2022-03-18 16:33:24 +00:00
|
|
|
extern mp_obj_t ServoCluster_all_to_pulse(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
2022-03-08 14:26:57 +00:00
|
|
|
extern mp_obj_t ServoCluster_value(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
2022-03-18 16:33:24 +00:00
|
|
|
extern mp_obj_t ServoCluster_all_to_value(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
2022-03-08 14:26:57 +00:00
|
|
|
extern mp_obj_t ServoCluster_phase(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
2022-03-18 16:33:24 +00:00
|
|
|
extern mp_obj_t ServoCluster_all_to_phase(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
2022-02-20 15:12:02 +00:00
|
|
|
extern mp_obj_t ServoCluster_frequency(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
2022-02-18 18:15:15 +00:00
|
|
|
extern mp_obj_t ServoCluster_min_value(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
|
|
|
extern mp_obj_t ServoCluster_mid_value(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
|
|
|
extern mp_obj_t ServoCluster_max_value(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
|
|
|
extern mp_obj_t ServoCluster_to_min(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
2022-03-10 20:34:59 +00:00
|
|
|
extern mp_obj_t ServoCluster_all_to_min(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
2022-02-18 18:15:15 +00:00
|
|
|
extern mp_obj_t ServoCluster_to_mid(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
2022-03-10 20:34:59 +00:00
|
|
|
extern mp_obj_t ServoCluster_all_to_mid(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
2022-02-18 18:15:15 +00:00
|
|
|
extern mp_obj_t ServoCluster_to_max(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
2022-03-10 20:34:59 +00:00
|
|
|
extern mp_obj_t ServoCluster_all_to_max(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
2022-02-18 18:15:15 +00:00
|
|
|
extern mp_obj_t ServoCluster_to_percent(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
2022-03-10 20:34:59 +00:00
|
|
|
extern mp_obj_t ServoCluster_all_to_percent(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
2022-03-08 18:15:59 +00:00
|
|
|
extern mp_obj_t ServoCluster_calibration(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args);
|
|
|
|
extern mp_obj_t ServoCluster_load(mp_obj_t self_in);
|