ON Semiconductor / mbed-os

Dependents:   mbed-TFT-example-NCS36510 mbed-Accelerometer-example-NCS36510 mbed-Accelerometer-example-NCS36510

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers sn_grs_stub.h Source File

sn_grs_stub.h

00001 /*
00002  * Copyright (c) 2015 ARM Limited. All rights reserved.
00003  * SPDX-License-Identifier: Apache-2.0
00004  * Licensed under the Apache License, Version 2.0 (the License); you may
00005  * not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  * http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an AS IS BASIS, WITHOUT
00012  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 #ifndef __SN_GRS_STUB_H__
00017 #define __SN_GRS_STUB_H__
00018 
00019 #include "sn_nsdl_lib.h"
00020 #include "sn_grs.h"
00021 
00022 typedef struct {
00023     bool retNull;
00024     int8_t infoRetCounter;
00025     int8_t info2ndRetCounter;
00026     int8_t expectedInt8;
00027     int8_t int8SuccessCounter;
00028     struct grs_s *expectedGrs;
00029     sn_nsdl_resource_info_s *expectedInfo;
00030     sn_grs_resource_list_s *expectedList;
00031 
00032     bool useMockedPath;
00033     uint8_t mockedPath[8];
00034     uint8_t mockedPathLen;
00035 }sn_grs_stub_def;
00036 
00037 extern sn_grs_stub_def sn_grs_stub;
00038 
00039 #endif //__SN_GRS_STUB_H__