Initial commit

Dependencies:   FastPWM

Committer:
lypinator
Date:
Wed Sep 16 01:11:49 2020 +0000
Revision:
0:bb348c97df44
Added PWM

Who changed what in which revision?

UserRevisionLine numberNew contents of line
lypinator 0:bb348c97df44 1 /*---------------------------------------------------------------------------
lypinator 0:bb348c97df44 2 * Copyright (c) 2016, u-blox Malmö, All Rights Reserved
lypinator 0:bb348c97df44 3 * SPDX-License-Identifier: LicenseRef-PBL
lypinator 0:bb348c97df44 4 *
lypinator 0:bb348c97df44 5 * This file and the related binary are licensed under the
lypinator 0:bb348c97df44 6 * Permissive Binary License, Version 1.0 (the "License");
lypinator 0:bb348c97df44 7 * you may not use these files except in compliance with the License.
lypinator 0:bb348c97df44 8 *
lypinator 0:bb348c97df44 9 * You may obtain a copy of the License here:
lypinator 0:bb348c97df44 10 * LICENSE-permissive-binary-license-1.0.txt and at
lypinator 0:bb348c97df44 11 * https://www.mbed.com/licenses/PBL-1.0
lypinator 0:bb348c97df44 12 *
lypinator 0:bb348c97df44 13 * See the License for the specific language governing permissions and
lypinator 0:bb348c97df44 14 * limitations under the License.
lypinator 0:bb348c97df44 15 *
lypinator 0:bb348c97df44 16 * Component : OTP
lypinator 0:bb348c97df44 17 * File : cb_otp.h
lypinator 0:bb348c97df44 18 *
lypinator 0:bb348c97df44 19 * Description : Support for One Time Programmable memory intended for
lypinator 0:bb348c97df44 20 * storing production parameters such as mac addresses, trim
lypinator 0:bb348c97df44 21 * values and product configuration. Writing to OTP memory shall
lypinator 0:bb348c97df44 22 * only be done in a production environment.
lypinator 0:bb348c97df44 23 *-------------------------------------------------------------------------*/
lypinator 0:bb348c97df44 24
lypinator 0:bb348c97df44 25 /**
lypinator 0:bb348c97df44 26 * @file cb_otp.h
lypinator 0:bb348c97df44 27 * @ingroup platform
lypinator 0:bb348c97df44 28 */
lypinator 0:bb348c97df44 29
lypinator 0:bb348c97df44 30 #ifndef _CB_OTP_H_
lypinator 0:bb348c97df44 31 #define _CB_OTP_H_
lypinator 0:bb348c97df44 32
lypinator 0:bb348c97df44 33 #include "cb_comdefs.h"
lypinator 0:bb348c97df44 34 #include "cb_status.h"
lypinator 0:bb348c97df44 35
lypinator 0:bb348c97df44 36 #define cbOTP_MAX_SIZE (30)
lypinator 0:bb348c97df44 37
lypinator 0:bb348c97df44 38 #ifdef __cplusplus
lypinator 0:bb348c97df44 39 extern "C" {
lypinator 0:bb348c97df44 40 #endif
lypinator 0:bb348c97df44 41
lypinator 0:bb348c97df44 42 typedef enum
lypinator 0:bb348c97df44 43 {
lypinator 0:bb348c97df44 44 cbOTP_MAC_BLUETOOTH = 1,
lypinator 0:bb348c97df44 45 cbOTP_MAC_WLAN,
lypinator 0:bb348c97df44 46 cbOTP_MAC_ETHERNET,
lypinator 0:bb348c97df44 47 cbOTP_MAC_FEATURE_INFO,
lypinator 0:bb348c97df44 48 cbOTP_MAC_DEBUG_UNIT,
lypinator 0:bb348c97df44 49 cbOTP_SERIAL_NUMBER,
lypinator 0:bb348c97df44 50 cbOTP_TYPE_CODE,
lypinator 0:bb348c97df44 51 cbOTP_SIGNATURE,
lypinator 0:bb348c97df44 52 cbOTP_MAC_WLAN_AP,
lypinator 0:bb348c97df44 53 cbOTP_UUID,
lypinator 0:bb348c97df44 54 cbOTP_RF_FREQ_CALIBRATION,
lypinator 0:bb348c97df44 55 cbOTP_RESERVED_UNUSED = 255
lypinator 0:bb348c97df44 56 } cbOTP_Id;
lypinator 0:bb348c97df44 57
lypinator 0:bb348c97df44 58
lypinator 0:bb348c97df44 59 /**
lypinator 0:bb348c97df44 60 * Read a OTP parameter
lypinator 0:bb348c97df44 61 * @param id The id of the parameter to write
lypinator 0:bb348c97df44 62 * @param len The length of the parameter to write
lypinator 0:bb348c97df44 63 * @param buf Pointer to data to be written
lypinator 0:bb348c97df44 64 * @returns The read length of the id is returned. If the read fails 0 is returned
lypinator 0:bb348c97df44 65 */
lypinator 0:bb348c97df44 66 cb_uint32 cbOTP_read(cbOTP_Id id, cb_uint32 len, cb_uint8 *buf);
lypinator 0:bb348c97df44 67
lypinator 0:bb348c97df44 68 #ifdef __cplusplus
lypinator 0:bb348c97df44 69 }
lypinator 0:bb348c97df44 70 #endif
lypinator 0:bb348c97df44 71
lypinator 0:bb348c97df44 72 #endif