metex14: Add sr_metex14_packet_request().

This commit is contained in:
Uwe Hermann 2012-12-01 20:48:03 +01:00
parent 8f46911e42
commit e90cf076aa
1 changed files with 9 additions and 0 deletions

View File

@ -254,6 +254,15 @@ static gboolean flags_valid(const struct metex14_info *info)
return TRUE;
}
SR_PRIV int sr_metex14_packet_request(struct sr_serial_dev_inst *serial)
{
const uint8_t wbuf = 'D';
sr_spew("Requesting DMM packet.");
return (serial_write(serial, &wbuf, 1) == 1) ? SR_OK : SR_ERR;
}
SR_PRIV gboolean sr_metex14_packet_valid(const uint8_t *buf)
{
struct metex14_info info;