Pfp Cybersecurity (Aka Power Fingerprinting, Inc.) / Mbed OS pfp-emon-nxp

Dependencies:   FXAS21002 FXOS8700Q

Committer:
vithyat
Date:
Fri Mar 20 20:15:18 2020 +0000
Revision:
2:990c985a69ae
Parent:
0:977e87915078
Update to work with P2Scan runtime

Who changed what in which revision?

UserRevisionLine numberNew contents of line
vithyat 0:977e87915078 1 /*
vithyat 0:977e87915078 2 * Copyright (c) 2015 ARM Limited. All rights reserved.
vithyat 0:977e87915078 3 * SPDX-License-Identifier: Apache-2.0
vithyat 0:977e87915078 4 * Licensed under the Apache License, Version 2.0 (the License); you may
vithyat 0:977e87915078 5 * not use this file except in compliance with the License.
vithyat 0:977e87915078 6 * You may obtain a copy of the License at
vithyat 0:977e87915078 7 *
vithyat 0:977e87915078 8 * http://www.apache.org/licenses/LICENSE-2.0
vithyat 0:977e87915078 9 *
vithyat 0:977e87915078 10 * Unless required by applicable law or agreed to in writing, software
vithyat 0:977e87915078 11 * distributed under the License is distributed on an AS IS BASIS, WITHOUT
vithyat 0:977e87915078 12 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
vithyat 0:977e87915078 13 * See the License for the specific language governing permissions and
vithyat 0:977e87915078 14 * limitations under the License.
vithyat 0:977e87915078 15 */
vithyat 0:977e87915078 16 #ifndef EVENT_DATA_H
vithyat 0:977e87915078 17 #define EVENT_DATA_H
vithyat 0:977e87915078 18
vithyat 0:977e87915078 19 #include "mbed-client/m2mvector.h"
vithyat 0:977e87915078 20
vithyat 0:977e87915078 21 //FORWARD DECLARATION
vithyat 0:977e87915078 22 class M2MObject;
vithyat 0:977e87915078 23
vithyat 0:977e87915078 24
vithyat 0:977e87915078 25 typedef Vector<M2MObject *> M2MObjectList;
vithyat 0:977e87915078 26
vithyat 0:977e87915078 27 class M2MSecurity;
vithyat 0:977e87915078 28
vithyat 0:977e87915078 29 class EventData
vithyat 0:977e87915078 30 {
vithyat 0:977e87915078 31 public:
vithyat 0:977e87915078 32 virtual ~EventData() {}
vithyat 0:977e87915078 33 };
vithyat 0:977e87915078 34
vithyat 0:977e87915078 35 class M2MSecurityData : public EventData
vithyat 0:977e87915078 36 {
vithyat 0:977e87915078 37 public:
vithyat 0:977e87915078 38 M2MSecurityData()
vithyat 0:977e87915078 39 :_object(NULL){}
vithyat 0:977e87915078 40 virtual ~M2MSecurityData() {}
vithyat 0:977e87915078 41 M2MSecurity *_object;
vithyat 0:977e87915078 42 };
vithyat 0:977e87915078 43
vithyat 0:977e87915078 44 class ResolvedAddressData : public EventData
vithyat 0:977e87915078 45 {
vithyat 0:977e87915078 46 public:
vithyat 0:977e87915078 47 ResolvedAddressData()
vithyat 0:977e87915078 48 :_address(NULL),
vithyat 0:977e87915078 49 _port(0){}
vithyat 0:977e87915078 50 virtual ~ResolvedAddressData() {}
vithyat 0:977e87915078 51 const M2MConnectionObserver::SocketAddress *_address;
vithyat 0:977e87915078 52 uint16_t _port;
vithyat 0:977e87915078 53 };
vithyat 0:977e87915078 54
vithyat 0:977e87915078 55 class ReceivedData : public EventData
vithyat 0:977e87915078 56 {
vithyat 0:977e87915078 57 public:
vithyat 0:977e87915078 58 ReceivedData()
vithyat 0:977e87915078 59 :_data(NULL),
vithyat 0:977e87915078 60 _size(0),
vithyat 0:977e87915078 61 _port(0),
vithyat 0:977e87915078 62 _address(NULL){}
vithyat 0:977e87915078 63 virtual ~ReceivedData() {}
vithyat 0:977e87915078 64 uint8_t *_data;
vithyat 0:977e87915078 65 uint16_t _size;
vithyat 0:977e87915078 66 uint16_t _port;
vithyat 0:977e87915078 67 const M2MConnectionObserver::SocketAddress *_address;
vithyat 0:977e87915078 68 };
vithyat 0:977e87915078 69
vithyat 0:977e87915078 70 class M2MRegisterData : public EventData
vithyat 0:977e87915078 71 {
vithyat 0:977e87915078 72 public:
vithyat 0:977e87915078 73 M2MRegisterData()
vithyat 0:977e87915078 74 :_object(NULL){}
vithyat 0:977e87915078 75 virtual ~M2MRegisterData() {}
vithyat 0:977e87915078 76 M2MSecurity *_object;
vithyat 0:977e87915078 77 M2MBaseList _base_list;
vithyat 0:977e87915078 78 };
vithyat 0:977e87915078 79
vithyat 0:977e87915078 80 class M2MUpdateRegisterData : public EventData
vithyat 0:977e87915078 81 {
vithyat 0:977e87915078 82 public:
vithyat 0:977e87915078 83 M2MUpdateRegisterData()
vithyat 0:977e87915078 84 :_object(NULL),
vithyat 0:977e87915078 85 _lifetime(0){}
vithyat 0:977e87915078 86 virtual ~M2MUpdateRegisterData() {}
vithyat 0:977e87915078 87 M2MSecurity *_object;
vithyat 0:977e87915078 88 uint32_t _lifetime;
vithyat 0:977e87915078 89 M2MBaseList _base_list;
vithyat 0:977e87915078 90 };
vithyat 0:977e87915078 91
vithyat 0:977e87915078 92
vithyat 0:977e87915078 93 #endif //EVENT_DATA_H
vithyat 0:977e87915078 94