stop run cmd
This commit is contained in:
@@ -1,10 +1,26 @@
|
||||
|
||||
#include <rtthread.h>
|
||||
#include "chrg_sink.h"
|
||||
|
||||
#include "chrg_north.h"
|
||||
#include "chrg_north_pkg.h"
|
||||
#include "chrg_utils.h"
|
||||
|
||||
|
||||
int sink_get_vc (rt_uint16_t vol, rt_uint16_t cur)
|
||||
{
|
||||
rt_uint16_t len = 0;
|
||||
rt_uint8_t data[12] = {0};
|
||||
rt_uint8_t frame[16] = {0};
|
||||
|
||||
return 0;
|
||||
u16_to_u8v(vol, &data[0]);
|
||||
u16_to_u8v(cur, &data[2]);
|
||||
data[4] = 0x00;
|
||||
data[5] = 0x00;
|
||||
|
||||
chrg_north_pkg_encode(ID_SINK, SINK_CMD_GET_VOLTAGE, data, 6, frame, &len);
|
||||
|
||||
return chrg_north_send(frame, len);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user