Arrow / Mbed OS DAPLink Reset
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers iap.h Source File

iap.h

Go to the documentation of this file.
00001 /**
00002  * @file    iap.h
00003  * @brief   
00004  *
00005  * DAPLink Interface Firmware
00006  * Copyright (c) 2017-2017, ARM Limited, All Rights Reserved
00007  * SPDX-License-Identifier: Apache-2.0
00008  *
00009  * Licensed under the Apache License, Version 2.0 (the "License"); you may
00010  * not use this file except in compliance with the License.
00011  * You may obtain a copy of the License at
00012  *
00013  * http://www.apache.org/licenses/LICENSE-2.0
00014  *
00015  * Unless required by applicable law or agreed to in writing, software
00016  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
00017  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00018  * See the License for the specific language governing permissions and
00019  * limitations under the License.
00020  */
00021 
00022 
00023 #ifndef IAP_H
00024 #define IAP_H
00025 
00026 #include<stdint.h>
00027 
00028 #define CMD_SUCCESS 0
00029 
00030 typedef struct {
00031     uint32_t cmd;
00032     uint32_t par[4];
00033     uint32_t stat;
00034     uint32_t res[4];
00035 } iap_operation_t;
00036 
00037 extern iap_operation_t iap_op;
00038 
00039 void iap_lock(void);
00040 void iap_unlock(void);
00041 void iap_call(iap_operation_t* operation);
00042 void iap_reinvoke(void);
00043 
00044 #endif