comparison src/g23m-aci/aci/ati_cmd.c @ 562:adae731ae50d

aci3: implemented AT%VBAT command independent of FCHG
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 06 Jan 2019 22:33:33 +0000
parents 5e39123540e6
children d648cafa30cf
comparison
equal deleted inserted replaced
561:dc1e0a1c100f 562:adae731ae50d
763 EXTERN T_ATI_RSLT atAtVMRS (char *cl, UBYTE srcId); 763 EXTERN T_ATI_RSLT atAtVMRS (char *cl, UBYTE srcId);
764 #ifdef RVM_FCHG_SWE 764 #ifdef RVM_FCHG_SWE
765 EXTERN T_ATI_RSLT atPercentCBC (char *cl, UBYTE srcId); 765 EXTERN T_ATI_RSLT atPercentCBC (char *cl, UBYTE srcId);
766 EXTERN T_ATI_RSLT atAtCHG (char *cl, UBYTE srcId); 766 EXTERN T_ATI_RSLT atAtCHG (char *cl, UBYTE srcId);
767 #endif 767 #endif
768 EXTERN T_ATI_RSLT atPercentVBAT (char *cl, UBYTE srcId);
768 769
769 LOCAL const ATCommand_bas cmds_bas[] = 770 LOCAL const ATCommand_bas cmds_bas[] =
770 { 771 {
771 {"A", atA, 0, 0 }, 772 {"A", atA, 0, 0 },
772 {"B", atBW, 0, 0 }, 773 {"B", atBW, 0, 0 },
1222 {"@VMRS", AT_CMD_AT_VMRS, atAtVMRS, 0, 0, 0}, 1223 {"@VMRS", AT_CMD_AT_VMRS, atAtVMRS, 0, 0, 0},
1223 #ifdef RVM_FCHG_SWE 1224 #ifdef RVM_FCHG_SWE
1224 {"%CBC", AT_CMD_P_CBC, atPercentCBC, 0, 0, 0}, 1225 {"%CBC", AT_CMD_P_CBC, atPercentCBC, 0, 0, 0},
1225 {"@CHG", AT_CMD_AT_CHG, atAtCHG, test_gen, 0, "%s: (0,1)"}, 1226 {"@CHG", AT_CMD_AT_CHG, atAtCHG, test_gen, 0, "%s: (0,1)"},
1226 #endif 1227 #endif
1228 {"%VBAT", AT_CMD_P_VBAT, atPercentVBAT, 0, 0, 0},
1227 /* terminator */ 1229 /* terminator */
1228 {NULL,AT_CMD_NONE,NULL,NULL,NULL,NULL} 1230 {NULL,AT_CMD_NONE,NULL,NULL,NULL,NULL}
1229 }; 1231 };
1230 1232
1231 static const char large_output_cmd[5][6] = 1233 static const char large_output_cmd[5][6] =