#include <config.h>
#include <string.h>
#include <ctype.h>
#include <math.h>
#include <glib.h>
#include <libsigrok/libsigrok.h>
#include "libsigrok-internal.h"
Go to the source code of this file.
◆ LOG_PREFIX
#define LOG_PREFIX "kern" |
◆ sr_kern_packet_valid()
SR_PRIV gboolean sr_kern_packet_valid |
( |
const uint8_t * |
buf | ) |
|
◆ sr_kern_parse()
Parse a protocol packet.
- Parameters
-
buf | Buffer containing the protocol packet. Must not be NULL. |
floatval | Pointer to a float variable. That variable will contain the result value upon parsing success. Must not be NULL. |
analog | Pointer to a struct sr_datafeed_analog_old. The struct will be filled with data according to the protocol packet. Must not be NULL. |
info | Pointer to a struct kern_info. The struct will be filled with data according to the protocol packet. Must not be NULL. |
- Returns
- SR_OK upon success, SR_ERR upon failure. Upon errors, the 'analog' variable contents are undefined and should not be used.
Definition at line 199 of file kern.c.