btbb.h (0c07172937036e1ea622dab06a6eaf32cdc8a8dc) btbb.h (088a90e8efc1c7809cfc209271d8a9221a2bc7a3)
1/* -*- c -*- */
2/*
3 * Copyright 2007 - 2013 Dominic Spill, Michael Ossmann, Will Code
4 *
5 * This file is part of libbtbb
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by

--- 58 unchanged lines hidden (view full) ---

67 *
68 * The library limits max_ac_errors to 5. Using a larger value will
69 * take up a lot of memory (several GB), without decoding many useful
70 * packets. Even a limit of 5 results in a syndrome table of several
71 * hundred MB and lots of noise. For embedded targets, a value of 2 is
72 * reasonable. */
73int btbb_init(int max_ac_errors);
74
1/* -*- c -*- */
2/*
3 * Copyright 2007 - 2013 Dominic Spill, Michael Ossmann, Will Code
4 *
5 * This file is part of libbtbb
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by

--- 58 unchanged lines hidden (view full) ---

67 *
68 * The library limits max_ac_errors to 5. Using a larger value will
69 * take up a lot of memory (several GB), without decoding many useful
70 * packets. Even a limit of 5 results in a syndrome table of several
71 * hundred MB and lots of noise. For embedded targets, a value of 2 is
72 * reasonable. */
73int btbb_init(int max_ac_errors);
74
75char *btbb_get_release(void);
76char *btbb_get_version(void);
75const char* btbb_get_release(void);
76const char* btbb_get_version(void);
77
78btbb_packet *btbb_packet_new(void);
79void btbb_packet_ref(btbb_packet *pkt);
80void btbb_packet_unref(btbb_packet *pkt);
81
82/* Search for a packet with specified LAP (or LAP_ANY). The stream
83 * must be at least of length serch_length + 72. Limit to
84 * 'max_ac_errors' bit errors.

--- 203 unchanged lines hidden ---
77
78btbb_packet *btbb_packet_new(void);
79void btbb_packet_ref(btbb_packet *pkt);
80void btbb_packet_unref(btbb_packet *pkt);
81
82/* Search for a packet with specified LAP (or LAP_ANY). The stream
83 * must be at least of length serch_length + 72. Limit to
84 * 'max_ac_errors' bit errors.

--- 203 unchanged lines hidden ---