|
|
@ -5,6 +5,32 @@ |
|
|
|
|
|
|
|
#include "reg_index.hpp"
|
|
|
|
using namespace iflytop; |
|
|
|
|
|
|
|
// DUMP_CONFIG("reg_pwm0_ctrl",);
|
|
|
|
// DUMP_CONFIG("reg_pwm0_duty",);
|
|
|
|
// DUMP_CONFIG("reg_pwm0_freq",);
|
|
|
|
// DUMP_CONFIG("reg_pwm1_ctrl",);
|
|
|
|
// DUMP_CONFIG("reg_pwm1_duty",);
|
|
|
|
// DUMP_CONFIG("reg_pwm1_freq",);
|
|
|
|
// DUMP_CONFIG("reg_pwm2_ctrl",);
|
|
|
|
// DUMP_CONFIG("reg_pwm2_duty",);
|
|
|
|
// DUMP_CONFIG("reg_pwm2_freq",);
|
|
|
|
// DUMP_CONFIG("reg_pwm3_ctrl",);
|
|
|
|
// DUMP_CONFIG("reg_pwm3_duty",);
|
|
|
|
// DUMP_CONFIG("reg_pwm3_freq",);
|
|
|
|
// DUMP_CONFIG("reg_pwm4_ctrl",);
|
|
|
|
// DUMP_CONFIG("reg_pwm4_duty",);
|
|
|
|
// DUMP_CONFIG("reg_pwm4_freq",);
|
|
|
|
// DUMP_CONFIG("reg_pwm5_ctrl",);
|
|
|
|
// DUMP_CONFIG("reg_pwm5_duty",);
|
|
|
|
// DUMP_CONFIG("reg_pwm5_freq",);
|
|
|
|
// DUMP_CONFIG("reg_pwm6_ctrl",);
|
|
|
|
// DUMP_CONFIG("reg_pwm6_duty",);
|
|
|
|
// DUMP_CONFIG("reg_pwm6_freq",);
|
|
|
|
// DUMP_CONFIG("reg_pwm7_ctrl",);
|
|
|
|
// DUMP_CONFIG("reg_pwm7_duty",);
|
|
|
|
// DUMP_CONFIG("reg_pwm7_freq",);
|
|
|
|
|
|
|
|
static reg_index_table_iterm_t iterms[] = { |
|
|
|
{"module_version", kreg_module_version}, |
|
|
|
{"module_type", kreg_module_type}, |
|
|
@ -112,6 +138,32 @@ static reg_index_table_iterm_t iterms[] = { |
|
|
|
{"sensor_humidity7", kreg_sensor_humidity7}, |
|
|
|
{"sensor_humidity8", kreg_sensor_humidity8}, |
|
|
|
{"sensor_humidity9", kreg_sensor_humidity9}, |
|
|
|
|
|
|
|
{"reg_pwm0_ctrl", kreg_pwm0_ctrl}, |
|
|
|
{"reg_pwm0_duty", kreg_pwm0_duty}, |
|
|
|
{"reg_pwm0_freq", kreg_pwm0_freq}, |
|
|
|
{"reg_pwm1_ctrl", kreg_pwm1_ctrl}, |
|
|
|
{"reg_pwm1_duty", kreg_pwm1_duty}, |
|
|
|
{"reg_pwm1_freq", kreg_pwm1_freq}, |
|
|
|
{"reg_pwm2_ctrl", kreg_pwm2_ctrl}, |
|
|
|
{"reg_pwm2_duty", kreg_pwm2_duty}, |
|
|
|
{"reg_pwm2_freq", kreg_pwm2_freq}, |
|
|
|
{"reg_pwm3_ctrl", kreg_pwm3_ctrl}, |
|
|
|
{"reg_pwm3_duty", kreg_pwm3_duty}, |
|
|
|
{"reg_pwm3_freq", kreg_pwm3_freq}, |
|
|
|
{"reg_pwm4_ctrl", kreg_pwm4_ctrl}, |
|
|
|
{"reg_pwm4_duty", kreg_pwm4_duty}, |
|
|
|
{"reg_pwm4_freq", kreg_pwm4_freq}, |
|
|
|
{"reg_pwm5_ctrl", kreg_pwm5_ctrl}, |
|
|
|
{"reg_pwm5_duty", kreg_pwm5_duty}, |
|
|
|
{"reg_pwm5_freq", kreg_pwm5_freq}, |
|
|
|
{"reg_pwm6_ctrl", kreg_pwm6_ctrl}, |
|
|
|
{"reg_pwm6_duty", kreg_pwm6_duty}, |
|
|
|
{"reg_pwm6_freq", kreg_pwm6_freq}, |
|
|
|
{"reg_pwm7_ctrl", kreg_pwm7_ctrl}, |
|
|
|
{"reg_pwm7_duty", kreg_pwm7_duty}, |
|
|
|
{"reg_pwm7_freq", kreg_pwm7_freq}, |
|
|
|
|
|
|
|
{"robot_move", kreg_robot_move}, |
|
|
|
{"robot_pos", kreg_robot_pos}, |
|
|
|
{"robot_velocity", kreg_robot_velocity}, |
|
|
@ -273,7 +325,7 @@ static reg_index_table_iterm_t iterms[] = { |
|
|
|
{"laster_scaner_adc_result_overflow", kreg_laster_scaner_adc_result_overflow}, |
|
|
|
{"laster_scaner_laster_intensity", kreg_laster_scaner_laster_intensity}, |
|
|
|
}; |
|
|
|
namespace iflytop{ |
|
|
|
namespace iflytop { |
|
|
|
void reg_index_table_get(reg_index_table_iterm_t** table, int32_t* size) { |
|
|
|
*size = sizeof(iterms) / sizeof(iterms[0]); |
|
|
|
*table = iterms; |
|
|
@ -287,4 +339,4 @@ int32_t str_to_reg_index(const char* val) { |
|
|
|
} |
|
|
|
return atoi(val); |
|
|
|
} |
|
|
|
} |
|
|
|
} // namespace iflytop
|