nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches
pcd.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2020 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
23#ifndef PCD_H__
24#define PCD_H__
25
26#include <zephyr/device.h>
27#include <sys/types.h>
28#include <dfu/pcd_common.h>
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
41
52int pcd_network_core_update(const void *src_addr, size_t len);
53
68int pcd_network_core_update_initiate(const void *src_addr, size_t len);
69
74void pcd_lock_ram(bool lock_conf);
75
79void pcd_done(void);
80
84
92
97const void *pcd_cmd_data_ptr_get(void);
98
108int pcd_fw_copy(const struct device *fdev);
109
110#ifdef CONFIG_PCD_READ_NETCORE_APP_VERSION
118int pcd_network_core_app_version(uint8_t *buf, size_t len);
119
126int pcd_find_fw_version(void);
127#endif /* CONFIG_PCD_READ_NETCORE_APP_VERSION */
128
129#ifdef __cplusplus
130}
131#endif
132
133#endif /* PCD_H__ */
134
int pcd_network_core_update(const void *src_addr, size_t len)
Sets up the PCD command structure with the location and size of the firmware update....
pcd_status
Definition pcd.h:34
@ PCD_STATUS_FAILED
Definition pcd.h:37
@ PCD_STATUS_READ_VERSION
Definition pcd.h:38
@ PCD_STATUS_COPY
Definition pcd.h:35
@ PCD_STATUS_LOCK_DEBUG
Definition pcd.h:39
@ PCD_STATUS_DONE
Definition pcd.h:36
void pcd_fw_copy_invalidate(void)
Invalidate the PCD CMD, indicating that the copy failed.
void pcd_done(void)
Update the PCD CMD to indicate that the operation has completed successfully.
int pcd_fw_copy(const struct device *fdev)
Perform the DFU image transfer.
void pcd_lock_ram(bool lock_conf)
Lock the RAM section used for IPC with the network core bootloader.
int pcd_network_core_update_initiate(const void *src_addr, size_t len)
Sets up the PCD command structure with the location and size of the firmware update....
const void * pcd_cmd_data_ptr_get(void)
Get value of 'data' member of pcd cmd.
enum pcd_status pcd_fw_copy_status_get(void)
Check the PCD CMD to find the status of the update.
Common definitions for the PCD API.