Zephyr API Documentation 4.0.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
updatehub.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2018-2023 O.S.Systems
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
14#ifndef ZEPHYR_INCLUDE_MGMT_UPDATEHUB_H_
15#define ZEPHYR_INCLUDE_MGMT_UPDATEHUB_H_
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
41
48__syscall void updatehub_autohandler(void);
49
60
75
84__syscall int updatehub_confirm(void);
85
91__syscall int updatehub_reboot(void);
92
93#ifdef __cplusplus
94}
95#endif
96
101#include <zephyr/syscalls/updatehub.h>
102#endif /* ZEPHYR_INCLUDE_MGMT_UPDATEHUB_H_ */
void updatehub_autohandler(void)
Runs UpdateHub probe and UpdateHub update automatically.
updatehub_response
Responses messages from UpdateHub.
Definition updatehub.h:29
enum updatehub_response updatehub_probe(void)
The UpdateHub probe verify if there is some update to be performed.
enum updatehub_response updatehub_update(void)
Apply the update package.
int updatehub_reboot(void)
Request system to reboot.
int updatehub_confirm(void)
Confirm that image is running as expected.
@ UPDATEHUB_HAS_UPDATE
Definition updatehub.h:38
@ UPDATEHUB_METADATA_ERROR
Definition updatehub.h:33
@ UPDATEHUB_INSTALL_ERROR
Definition updatehub.h:35
@ UPDATEHUB_UNCONFIRMED_IMAGE
Definition updatehub.h:32
@ UPDATEHUB_NO_UPDATE
Definition updatehub.h:39
@ UPDATEHUB_INCOMPATIBLE_HARDWARE
Definition updatehub.h:31
@ UPDATEHUB_OK
Definition updatehub.h:37
@ UPDATEHUB_NETWORKING_ERROR
Definition updatehub.h:30
@ UPDATEHUB_DOWNLOAD_ERROR
Definition updatehub.h:34
@ UPDATEHUB_FLASH_INIT_ERROR
Definition updatehub.h:36