Linduino
1.3.0
Linear Technology Arduino-Compatible Demonstration Board
record_type_basic_definitions.h
Go to the documentation of this file.
1
/*!
2
3
Copyright 2018(c) Analog Devices, Inc.
4
5
All rights reserved.
6
7
Redistribution and use in source and binary forms, with or without
8
modification, are permitted provided that the following conditions are met:
9
- Redistributions of source code must retain the above copyright
10
notice, this list of conditions and the following disclaimer.
11
- Redistributions in binary form must reproduce the above copyright
12
notice, this list of conditions and the following disclaimer in
13
the documentation and/or other materials provided with the
14
distribution.
15
- Neither the name of Analog Devices, Inc. nor the names of its
16
contributors may be used to endorse or promote products derived
17
from this software without specific prior written permission.
18
- The use of this software may or may not infringe the patent rights
19
of one or more patent holders. This license does not release you
20
from the requirement that you obtain separate licenses from these
21
patent holders to use this software.
22
- Use of the software either in source or binary form, must be run
23
on or directly connected to an Analog Devices Inc. component.
24
25
THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR
26
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT,
27
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
28
IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT,
29
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
30
LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR
31
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
32
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
33
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
34
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35
*/
36
/*! @file
37
@ingroup LTPSM_InFlightUpdate
38
Library Header File
39
*/
40
41
#ifndef RECORD_TYPE_BASIC_DEFINITIONS_
42
#define RECORD_TYPE_BASIC_DEFINITIONS_
43
44
#include <stdint.h>
45
46
#pragma pack(push, 1)
47
/** DEFINITIONS ****************************************************/
48
#define SUCCESS 1
49
#define FAILURE 0
50
51
/** Basic Record Type Definitions **********************************/
52
typedef
struct
tRecordHeader
53
{
54
uint16_t
Length
;
55
uint16_t
RecordType
;
56
}
tRecordHeaderLengthAndType
, *
pRecordHeaderLengthAndType
, * *
ppRecordHeaderLengthAndType
;
57
58
typedef
struct
59
{
60
uint16_t
DeviceAddress
;
61
uint8_t
CommandCode
;
62
uint8_t
UsePec
;
63
}
tRecordHeaderAddressAndCommandWithOptionalPEC
;
64
65
typedef
struct
66
{
67
uint16_t
DeviceAddress
;
68
uint8_t
CommandCode
;
69
}
tRecordHeaderAddressAndCommandWithoutPEC
;
70
#pragma pack(pop)
71
#endif
tRecordHeader::Length
uint16_t Length
Definition:
record_type_basic_definitions.h:54
ppRecordHeaderLengthAndType
struct tRecordHeader ** ppRecordHeaderLengthAndType
tRecordHeaderAddressAndCommandWithoutPEC::DeviceAddress
uint16_t DeviceAddress
Definition:
record_type_basic_definitions.h:67
pRecordHeaderLengthAndType
struct tRecordHeader * pRecordHeaderLengthAndType
tRecordHeaderLengthAndType
struct tRecordHeader tRecordHeaderLengthAndType
Basic Record Type Definitions.
tRecordHeaderAddressAndCommandWithOptionalPEC::DeviceAddress
uint16_t DeviceAddress
Definition:
record_type_basic_definitions.h:60
tRecordHeaderAddressAndCommandWithOptionalPEC
Definition:
record_type_basic_definitions.h:58
tRecordHeader::RecordType
uint16_t RecordType
Definition:
record_type_basic_definitions.h:55
tRecordHeaderAddressAndCommandWithOptionalPEC::CommandCode
uint8_t CommandCode
Definition:
record_type_basic_definitions.h:61
tRecordHeaderAddressAndCommandWithoutPEC
Definition:
record_type_basic_definitions.h:65
tRecordHeaderAddressAndCommandWithoutPEC::CommandCode
uint8_t CommandCode
Definition:
record_type_basic_definitions.h:68
tRecordHeader
Basic Record Type Definitions.
Definition:
record_type_basic_definitions.h:52
tRecordHeaderAddressAndCommandWithOptionalPEC::UsePec
uint8_t UsePec
Definition:
record_type_basic_definitions.h:62
LTSketchbook
libraries
LTPSM_InFlightUpdate
record_type_basic_definitions.h
Generated on Thu Mar 19 2020 10:59:36 for Linduino by
1.8.13