#include "depthai-bootloader-shared/SBR.h"
#include "assert.h"
#include "stddef.h"
#include "string.h"
Go to the source code of this file.
|
static int | read_section (const void *buffer, uint32_t size, SBR_SECTION *section) |
|
static uint32_t | read_uint32_t (const void *buffer) |
|
uint32_t | sbr_compute_checksum (const void *buffer, uint32_t size) |
|
uint32_t | sbr_compute_checksum_prev (const void *buffer, uint32_t size, uint32_t prev_checksum) |
|
uint32_t | sbr_initial_checksum () |
|
int | sbr_parse (const void *buffer, uint32_t size, SBR *sbr) |
|
bool | sbr_section_get_bootable (const SBR_SECTION *sbr_section) |
|
SBR_COMPRESSION | sbr_section_get_compression (const SBR_SECTION *sbr_section) |
|
bool | sbr_section_get_ignore_checksum (const SBR_SECTION *sbr_section) |
|
bool | sbr_section_is_valid (const SBR_SECTION *sbr_section) |
|
void | sbr_section_set_bootable (SBR_SECTION *sbr_section, bool bootable) |
|
void | sbr_section_set_checksum (SBR_SECTION *sbr_section, uint32_t checksum) |
|
void | sbr_section_set_compression (SBR_SECTION *sbr_section, SBR_COMPRESSION compression) |
|
void | sbr_section_set_ignore_checksum (SBR_SECTION *sbr_section, bool ignore_checksum) |
|
void | sbr_section_set_name (SBR_SECTION *sbr_section, const char *name) |
|
void | sbr_section_set_offset (SBR_SECTION *sbr_section, uint32_t offset) |
|
void | sbr_section_set_size (SBR_SECTION *sbr_section, uint32_t size) |
|
void | sbr_section_set_type (SBR_SECTION *sbr_section, uint8_t type) |
|
int | sbr_serialize (const SBR *sbr, void *buffer, uint32_t max_size) |
|
static void | write_uint32_t (void *buffer, uint32_t val) |
|
◆ read_section()
static int read_section |
( |
const void * |
buffer, |
|
|
uint32_t |
size, |
|
|
SBR_SECTION * |
section |
|
) |
| |
|
static |
Definition at line 24 of file SBR.c.
◆ read_uint32_t()
static uint32_t read_uint32_t |
( |
const void * |
buffer | ) |
|
|
static |
Definition at line 7 of file SBR.c.
◆ sbr_compute_checksum()
uint32_t sbr_compute_checksum |
( |
const void * |
buffer, |
|
|
uint32_t |
size |
|
) |
| |
◆ sbr_compute_checksum_prev()
uint32_t sbr_compute_checksum_prev |
( |
const void * |
buffer, |
|
|
uint32_t |
size, |
|
|
uint32_t |
prev_checksum |
|
) |
| |
◆ sbr_initial_checksum()
uint32_t sbr_initial_checksum |
( |
| ) |
|
◆ sbr_parse()
int sbr_parse |
( |
const void * |
buffer, |
|
|
uint32_t |
size, |
|
|
SBR * |
sbr |
|
) |
| |
Definition at line 57 of file SBR.c.
◆ sbr_section_get_bootable()
bool sbr_section_get_bootable |
( |
const SBR_SECTION * |
sbr_section | ) |
|
◆ sbr_section_get_compression()
◆ sbr_section_get_ignore_checksum()
bool sbr_section_get_ignore_checksum |
( |
const SBR_SECTION * |
sbr_section | ) |
|
◆ sbr_section_is_valid()
bool sbr_section_is_valid |
( |
const SBR_SECTION * |
sbr_section | ) |
|
◆ sbr_section_set_bootable()
void sbr_section_set_bootable |
( |
SBR_SECTION * |
sbr_section, |
|
|
bool |
bootable |
|
) |
| |
◆ sbr_section_set_checksum()
void sbr_section_set_checksum |
( |
SBR_SECTION * |
sbr_section, |
|
|
uint32_t |
checksum |
|
) |
| |
◆ sbr_section_set_compression()
◆ sbr_section_set_ignore_checksum()
void sbr_section_set_ignore_checksum |
( |
SBR_SECTION * |
sbr_section, |
|
|
bool |
ignore_checksum |
|
) |
| |
◆ sbr_section_set_name()
void sbr_section_set_name |
( |
SBR_SECTION * |
sbr_section, |
|
|
const char * |
name |
|
) |
| |
◆ sbr_section_set_offset()
void sbr_section_set_offset |
( |
SBR_SECTION * |
sbr_section, |
|
|
uint32_t |
offset |
|
) |
| |
◆ sbr_section_set_size()
void sbr_section_set_size |
( |
SBR_SECTION * |
sbr_section, |
|
|
uint32_t |
size |
|
) |
| |
◆ sbr_section_set_type()
void sbr_section_set_type |
( |
SBR_SECTION * |
sbr_section, |
|
|
uint8_t |
type |
|
) |
| |
◆ sbr_serialize()
int sbr_serialize |
( |
const SBR * |
sbr, |
|
|
void * |
buffer, |
|
|
uint32_t |
max_size |
|
) |
| |
Definition at line 84 of file SBR.c.
◆ write_uint32_t()
static void write_uint32_t |
( |
void * |
buffer, |
|
|
uint32_t |
val |
|
) |
| |
|
static |
Definition at line 15 of file SBR.c.