Lines Matching refs:a_module

65 common_identify(struct function_block *fb, int fd, bool debug, int a_module, struct scmd_identify_r…  in common_identify()  argument
72 err = (*(fb->func_phy_read))(fd, debug, a_module, SCMD_REG_ID, SCMD_REG_ID, &b); in common_identify()
75 err = (*(fb->func_phy_read))(fd, debug, a_module, SCMD_REG_FID, SCMD_REG_FID, &b); in common_identify()
78 err = (*(fb->func_phy_read))(fd, debug, a_module, SCMD_REG_CONFIG_BITS, SCMD_REG_CONFIG_BITS, &b); in common_identify()
81 err = (*(fb->func_phy_read))(fd, debug, a_module, SCMD_REG_SLAVE_ADDR, SCMD_REG_SLAVE_ADDR, &b); in common_identify()
89 int common_diag(struct function_block *fb, int fd, bool debug, int a_module, struct scmd_diag_respo… in common_diag() argument
98 err = (*(fb->func_phy_read))(fd, debug, a_module, n, n, &b); in common_diag()
113 common_get_motor(struct function_block *fb, int fd, bool debug, int a_module, struct scmd_motor_res… in common_get_motor() argument
118 if (a_module != SCMD_ANY_MODULE && in common_get_motor()
119 (a_module < 0 || a_module > 16)) in common_get_motor()
131 if (a_module != SCMD_ANY_MODULE && in common_get_motor()
132 (m / 2) != a_module) in common_get_motor()
141 if (a_module == SCMD_ANY_MODULE || in common_get_motor()
142 a_module == 0) { in common_get_motor()
151 if (a_module != 0) { in common_get_motor()
164 if (a_module == SCMD_ANY_MODULE || in common_get_motor()
165 a_module == 0) { in common_get_motor()
171 if (a_module != 0) { in common_get_motor()
189 common_set_motor(struct function_block *fb, int fd, bool debug, int a_module, char a_motor, int8_t … in common_set_motor() argument
195 if (a_module < 0 || a_module > 16) in common_set_motor()
203 reg_index = a_module * 2; in common_set_motor()
217 common_invert_motor(struct function_block *fb, int fd, bool debug, int a_module, char a_motor) in common_invert_motor() argument
226 if (a_module == 0) { in common_invert_motor()
238 motor_index = (a_module * 2) - 2; in common_invert_motor()
259 common_bridge_motor(struct function_block *fb, int fd, bool debug, int a_module) in common_bridge_motor() argument
268 if (a_module == 0) { in common_bridge_motor()
275 module_index = a_module - 1; in common_bridge_motor()