Virgil IoT KIT
modules
firmware
include
virgil
iot
firmware
firmware_hal.h
Go to the documentation of this file.
1
// Copyright (C) 2015-2020 Virgil Security, Inc.
2
//
3
// All rights reserved.
4
//
5
// Redistribution and use in source and binary forms, with or without
6
// modification, are permitted provided that the following conditions are
7
// met:
8
//
9
// (1) Redistributions of source code must retain the above copyright
10
// notice, this list of conditions and the following disclaimer.
11
//
12
// (2) Redistributions in binary form must reproduce the above copyright
13
// notice, this list of conditions and the following disclaimer in
14
// the documentation and/or other materials provided with the
15
// distribution.
16
//
17
// (3) Neither the name of the copyright holder nor the names of its
18
// contributors may be used to endorse or promote products derived from
19
// this software without specific prior written permission.
20
//
21
// THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR
22
// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
23
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24
// DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
25
// INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
26
// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
27
// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
29
// STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
30
// IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31
// POSSIBILITY OF SUCH DAMAGE.
32
//
33
// Lead Maintainer: Virgil Security Inc. <support@virgilsecurity.com>
34
43
#ifndef VS_FIRMWARE_INTERFACE_H
44
#define VS_FIRMWARE_INTERFACE_H
45
46
#include <
virgil/iot/status_code/status_code.h
>
47
48
#ifdef __cplusplus
49
namespace
VirgilIoTKit {
50
extern
"C"
{
51
#endif
52
63
vs_status_e
64
vs_firmware_install_prepare_space_hal
(
void
);
65
78
vs_status_e
79
vs_firmware_install_append_data_hal
(
const
void
*data, uint16_t data_sz);
80
94
vs_status_e
95
vs_firmware_get_own_firmware_footer_hal
(
void
*footer,
size_t
footer_sz);
96
97
#ifdef __cplusplus
98
}
// extern "C"
99
}
// namespace VirgilIoTKit
100
#endif
101
102
#endif // VS_FIRMWARE_INTERFACE_H
vs_status_e
vs_status_e
Status code.
Definition:
status_code.h:77
status_code.h
Status codes and macroses.
vs_firmware_get_own_firmware_footer_hal
vs_status_e vs_firmware_get_own_firmware_footer_hal(void *footer, size_t footer_sz)
Get own firmware footer.
vs_firmware_install_append_data_hal
vs_status_e vs_firmware_install_append_data_hal(const void *data, uint16_t data_sz)
Append data.
vs_firmware_install_prepare_space_hal
vs_status_e vs_firmware_install_prepare_space_hal(void)
Prepare space.
Generated by
1.8.17