fw-update-unsigned.h
Go to the documentation of this file.
1 // License: Apache 2.0. See LICENSE file in root directory.
2 // Copyright(c) 2019 Intel Corporation. All Rights Reserved.
3 
4 #pragma once
5 
6 #include "hw-monitor.h"
7 
8 #include <stdint.h>
9 #include <vector>
10 #include <memory>
11 
12 namespace librealsense
13 {
15  {
17  std::vector<uint16_t> read_only_sections_types;
18  };
19 
21  {
33  uint8_t fw_header[16];
36  };
37 
39  {
45  };
46 
48  {
50  std::vector<uint8_t> data;
51  };
52 
53  struct flash_table
54  {
56  std::vector<uint8_t> data;
58  bool read_only;
59 
60  };
61 
63  {
68  };
69 
71  {
76  std::vector<flash_payload_header> payloads;
77  std::vector<flash_table> tables;
78  };
79 
80  struct flash_info
81  {
85  };
86 
87  std::vector<flash_payload_header> parse_payloads(const std::vector<uint8_t>& flash_buffer, size_t number_of_payloads);
88  std::vector<flash_table> parse_tables(const std::vector<uint8_t>& flash_buffer, flash_table toc, flash_structure structure);
89  flash_table parse_table_of_contents(const std::vector<uint8_t>& flash_buffer, uint32_t toc_offset);
90  std::vector<uint8_t> merge_images(flash_info from, flash_info to, const std::vector<uint8_t> image);
91  flash_section parse_flash_section(const std::vector<uint8_t>& flash_buffer, flash_table toc, flash_structure s);
92 }
flash_section parse_flash_section(const std::vector< uint8_t > &flash_buffer, flash_table toc, flash_structure s)
std::vector< flash_payload_header > payloads
std::vector< uint16_t > read_only_sections_types
GLdouble s
unsigned short uint16_t
Definition: stdint.h:79
unsigned char uint8_t
Definition: stdint.h:78
GLenum GLenum GLsizei void * image
std::vector< flash_table > parse_tables(const std::vector< uint8_t > &flash_buffer, flash_table toc, flash_structure structure)
std::vector< flash_payload_header > parse_payloads(const std::vector< uint8_t > &flash_buffer, size_t number_of_payloads)
unsigned int uint32_t
Definition: stdint.h:80
std::vector< uint8_t > data
std::vector< uint8_t > merge_images(flash_info from, flash_info to, const std::vector< uint8_t > image)
flash_table parse_table_of_contents(const std::vector< uint8_t > &flash_buffer, uint32_t toc_offset)
std::vector< uint8_t > data
std::vector< flash_table > tables
flash_payload_header header


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:47:15