libsigrok
0.4.0
sigrok hardware access and backend library
|
#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.
Macros | |
#define | LOG_PREFIX "kern" |
Functions | |
SR_PRIV gboolean | sr_kern_packet_valid (const uint8_t *buf) |
SR_PRIV int | sr_kern_parse (const uint8_t *buf, float *floatval, struct sr_datafeed_analog_old *analog, void *info) |
Parse a protocol packet. More... | |
SR_PRIV int sr_kern_parse | ( | const uint8_t * | buf, |
float * | floatval, | ||
struct sr_datafeed_analog_old * | analog, | ||
void * | info | ||
) |
Parse a protocol packet.
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. |
Definition at line 199 of file kern.c.
References SR_OK.