Eddystone Beacon only for TYBLE16

Dependencies:   TYBLE16_BASE

Please refer flowing link.
/users/kenjiArai/notebook/tyble16-module-will-become-a-mbed-family--mbedliza/

Committer:
kenjiArai
Date:
Sun Feb 25 03:41:51 2018 +0000
Revision:
1:95acd5ad69e8
Parent:
0:5087fec653b2
bug fix

Who changed what in which revision?

UserRevisionLine numberNew contents of line
kenjiArai 0:5087fec653b2 1 /* mbed Microcontroller Library
kenjiArai 0:5087fec653b2 2 * Copyright (c) 2006-2015 ARM Limited
kenjiArai 0:5087fec653b2 3 *
kenjiArai 0:5087fec653b2 4 * Licensed under the Apache License, Version 2.0 (the "License");
kenjiArai 0:5087fec653b2 5 * you may not use this file except in compliance with the License.
kenjiArai 0:5087fec653b2 6 * You may obtain a copy of the License at
kenjiArai 0:5087fec653b2 7 *
kenjiArai 0:5087fec653b2 8 * http://www.apache.org/licenses/LICENSE-2.0
kenjiArai 0:5087fec653b2 9 *
kenjiArai 0:5087fec653b2 10 * Unless required by applicable law or agreed to in writing, software
kenjiArai 0:5087fec653b2 11 * distributed under the License is distributed on an "AS IS" BASIS,
kenjiArai 0:5087fec653b2 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
kenjiArai 0:5087fec653b2 13 * See the License for the specific language governing permissions and
kenjiArai 0:5087fec653b2 14 * limitations under the License.
kenjiArai 0:5087fec653b2 15 */
kenjiArai 0:5087fec653b2 16
kenjiArai 0:5087fec653b2 17 #ifndef __UIDFRAME_H__
kenjiArai 0:5087fec653b2 18 #define __UIDFRAME_H__
kenjiArai 0:5087fec653b2 19
kenjiArai 0:5087fec653b2 20 #include <string.h>
kenjiArai 0:5087fec653b2 21 #include "EddystoneTypes.h"
kenjiArai 0:5087fec653b2 22
kenjiArai 0:5087fec653b2 23 class UIDFrame
kenjiArai 0:5087fec653b2 24 {
kenjiArai 0:5087fec653b2 25 public:
kenjiArai 0:5087fec653b2 26 UIDFrame(void);
kenjiArai 0:5087fec653b2 27
kenjiArai 0:5087fec653b2 28 UIDFrame(const UIDNamespaceID_t uidNamespaceIDIn, const UIDInstanceID_t uidInstanceIDIn);
kenjiArai 0:5087fec653b2 29
kenjiArai 0:5087fec653b2 30 void setUIDData(const UIDNamespaceID_t *uidNamespaceIDIn, const UIDInstanceID_t *uidInstanceIDIn);
kenjiArai 0:5087fec653b2 31
kenjiArai 0:5087fec653b2 32 void constructUIDFrame(uint8_t *rawFrame, int8_t advPowerLevel);
kenjiArai 0:5087fec653b2 33
kenjiArai 0:5087fec653b2 34 size_t getRawFrameSize(void) const;
kenjiArai 0:5087fec653b2 35
kenjiArai 0:5087fec653b2 36 uint8_t* getUIDNamespaceID(void);
kenjiArai 0:5087fec653b2 37
kenjiArai 0:5087fec653b2 38 uint8_t* getUIDInstanceID(void);
kenjiArai 0:5087fec653b2 39
kenjiArai 0:5087fec653b2 40 private:
kenjiArai 0:5087fec653b2 41 static const uint8_t FRAME_TYPE_UID = 0x00;
kenjiArai 0:5087fec653b2 42 static const uint8_t FRAME_SIZE_UID = 20;
kenjiArai 0:5087fec653b2 43
kenjiArai 0:5087fec653b2 44 UIDNamespaceID_t uidNamespaceID;
kenjiArai 0:5087fec653b2 45 UIDInstanceID_t uidInstanceID;
kenjiArai 0:5087fec653b2 46 };
kenjiArai 0:5087fec653b2 47
kenjiArai 0:5087fec653b2 48 #endif /* __UIDFRAME_H__ */