Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
chk_config.h
00001 /* 00002 * Copyright (c) 2013 Digi International Inc., 00003 * All rights not expressly granted are reserved. 00004 * 00005 * This Source Code Form is subject to the terms of the Mozilla Public 00006 * License, v. 2.0. If a copy of the MPL was not distributed with this file, 00007 * You can obtain one at http://mozilla.org/MPL/2.0/. 00008 * 00009 * Digi International Inc. 11001 Bren Road East, Minnetonka, MN 55343 00010 * ======================================================================= 00011 */ 00012 00013 #ifndef CHK_CONFIG_H_ 00014 #define CHK_CONFIG_H_ 00015 00016 #if (defined CONNECTOR_TRANSPORT_TCP) 00017 00018 #if (defined CONNECTOR_VENDOR_ID) 00019 #if (CONNECTOR_VENDOR_ID > CONNECTOR_MAX_VENDOR_ID_NUMBER) || (CONNECTOR_VENDOR_ID == 0) 00020 #error "Invalid CONNECTOR_VENDOR_ID in connector_config.h" 00021 #endif 00022 #endif 00023 00024 #if (defined CONNECTOR_TX_KEEPALIVE_IN_SECONDS) 00025 #if (CONNECTOR_TX_KEEPALIVE_IN_SECONDS < MIN_TX_KEEPALIVE_INTERVAL_IN_SECONDS) || (CONNECTOR_TX_KEEPALIVE_IN_SECONDS > MAX_TX_KEEPALIVE_INTERVAL_IN_SECONDS) 00026 #error "Invalid CONNECTOR_TX_KEEPALIVE_IN_SECONDS value in connector_config.h." 00027 #endif 00028 #endif 00029 00030 #if (defined CONNECTOR_RX_KEEPALIVE_IN_SECONDS) 00031 #if (CONNECTOR_RX_KEEPALIVE_IN_SECONDS < MIN_RX_KEEPALIVE_INTERVAL_IN_SECONDS) || (CONNECTOR_RX_KEEPALIVE_IN_SECONDS > MAX_RX_KEEPALIVE_INTERVAL_IN_SECONDS) 00032 #error "Invalid CONNECTOR_RX_KEEPALIVE_IN_SECONDS value in connector_config.h." 00033 #endif 00034 #endif 00035 00036 #if (defined CONNECTOR_WAIT_COUNT) 00037 #if (CONNECTOR_WAIT_COUNT < WAIT_COUNT_MIN) || (CONNECTOR_WAIT_COUNT > WAIT_COUNT_MAX) 00038 #error "Invalid CONNECTOR_WAIT_COUNT value in connector_config.h." 00039 #endif 00040 #endif 00041 00042 #if (defined CONNECTOR_MSG_MAX_TRANSACTION) 00043 #if (CONNECTOR_MSG_MAX_TRANSACTION < 0 || CONNECTOR_MSG_MAX_TRANSACTION > CONNECTOR_MAX_TRANSACTIONS_LIMIT) 00044 #error "Invalid CONNECTOR_MSG_MAX_TRANSACTION value in connector_config.h" 00045 #endif 00046 #endif 00047 00048 #endif 00049 00050 #if (CONNECTOR_VERSION < 0x02010000) 00051 /* Translate macros that have been renamed */ 00052 #if (defined CONNECTOR_SM_MAX_SEGMENTS) 00053 #define CONNECTOR_SM_MAX_RX_SEGMENTS CONNECTOR_SM_MAX_SEGMENTS 00054 #define CONNECTOR_SM_MAX_DATA_POINTS_SEGMENTS CONNECTOR_SM_MAX_SEGMENTS 00055 #endif 00056 #endif 00057 00058 #if (defined CONNECTOR_RCI_MAXIMUM_CONTENT_LENGTH) 00059 #if CONNECTOR_RCI_MAXIMUM_CONTENT_LENGTH > SIZE_MAX 00060 #error "Invalid CONNECTOR_RCI_MAXIMUM_CONTENT_LENGTH, it must be lower than SIZE_MAX" 00061 #endif 00062 #endif 00063 00064 #endif 00065
Generated on Tue Jul 12 2022 19:18:38 by
 1.7.2
 1.7.2