Bluenet  5.7.0
Bluenet, firmware for nRF52 smart home devices
Loading...
Searching...
No Matches
cs_Uicr.h
Go to the documentation of this file.
1/*
2 * Author: Crownstone Team
3 * Copyright: Crownstone (https://crownstone.rocks)
4 * Date: Mar 17, 2022
5 * License: LGPLv3+, Apache License 2.0, and/or MIT (triple-licensed)
6 */
7
8#pragma once
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
16#include <stdbool.h>
17#include <stdint.h>
18
23
36
47
52
61
73cs_ret_code_t setUicr(const cs_uicr_data_t* uicrData, bool overwrite);
74
75#ifdef __cplusplus
76}
77#endif
uint16_t cs_ret_code_t
Definition: cs_Typedefs.h:21
cs_ret_code_t setUicr(const cs_uicr_data_t *uicrData, bool overwrite)
Write the UICR data to UICR.
cs_ret_code_t enableNfcPinsAsGpio()
Enable NFC pins to be used as GPIO.
cs_ret_code_t getUicr(cs_uicr_data_t *uicrData)
Read the UICR data from UICR.
uint32_t getHardwareBoard()
Get the hardware board from UICR, or the default board if none is set in UICR.
bool canUseNfcPinsAsGpio()
Returns true when the NFC pins can be used as GPIO.
cs_ret_code_t writeHardwareBoard()
Write the default hardware board to UICR if none is written yet.
Struct with all the Crownstone fields in UICR.
Definition: cs_UicrPacket.h:20