libdrmconf
0.10.4
A library to program DMR radios.
Main Page
Related Pages
Modules
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Variables
_
a
b
c
d
e
f
h
i
l
m
n
o
p
r
s
t
u
v
y
Typedefs
Enumerations
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
z
Properties
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Files
File List
•
All
Classes
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Modules
Pages
lib
crc32.hh
1
#ifndef CRC32_HH
2
#define CRC32_HH
3
4
#include <QByteArray>
5
9
class
CRC32
10
{
11
public
:
13
CRC32
();
15
void
update
(uint8_t c);
17
void
update
(
const
uint8_t *c,
size_t
n);
19
void
update
(
const
QByteArray &data);
21
inline
uint32_t
get
() {
return
_crc
; }
22
23
protected
:
25
uint32_t
_crc
;
26
};
27
28
#endif
// CRC32_HH
CRC32
Implements the CRC32 checksum as used in DFU files.
Definition:
crc32.hh:10
CRC32::CRC32
CRC32()
Default constructor.
Definition:
crc32.cc:51
CRC32::get
uint32_t get()
Returns the current CRC.
Definition:
crc32.hh:21
CRC32::update
void update(uint8_t c)
Update CRC with given byte.
Definition:
crc32.cc:58
CRC32::_crc
uint32_t _crc
Current CRC.
Definition:
crc32.hh:25
Generated by
1.9.1