libsigrok/src/dmm/ut372.c

40 lines
1.1 KiB
C

/*
* This file is part of the libsigrok project.
*
* Copyright (C) 2015 Martin Ling <martin-sigrok@earth.li>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* UNI-T UT372 protocol parser.
*/
#include "libsigrok.h"
#include "libsigrok-internal.h"
#define LOG_PREFIX "ut372"
SR_PRIV gboolean sr_ut372_packet_valid(const uint8_t *buf)
{
return FALSE;
}
SR_PRIV int sr_ut372_parse(const uint8_t *buf, float *floatval,
struct sr_datafeed_analog *analog, void *info)
{
return SR_OK;
}