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.
Fork of mbed-dev by
Diff: targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/TARGET_UBLOX_EVK_ODIN_W2/sdk/ublox-odin-w2-drivers/cb_status.h
- Revision:
- 167:e84263d55307
- Parent:
- 165:e614a9f1c9e2
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/TARGET_UBLOX_EVK_ODIN_W2/sdk/ublox-odin-w2-drivers/cb_status.h Wed Jun 21 17:46:44 2017 +0100 @@ -0,0 +1,47 @@ +/*--------------------------------------------------------------------------- + * Copyright (c) 2016, u-blox Malmö, All Rights Reserved + * SPDX-License-Identifier: LicenseRef-PBL + * + * This file and the related binary are licensed under the + * Permissive Binary License, Version 1.0 (the "License"); + * you may not use these files except in compliance with the License. + * + * You may obtain a copy of the License here: + * LICENSE-permissive-binary-license-1.0.txt and at + * https://www.mbed.com/licenses/PBL-1.0 + * + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Component : RTSL + * File : cb_status.h + * + * Description : Common RTSL status codes + *-------------------------------------------------------------------------*/ +#ifndef _CB_STATUS_H_ +#define _CB_STATUS_H_ + +/*=========================================================================== + * DEFINES + *=========================================================================*/ + +#define OK(status) (status == cbSTATUS_OK) +#define BUSY(status) (status == cbSTATUS_BUSY) +#define ERR(status) (status == cbSTATUS_ERROR) + +/*=========================================================================== + * TYPES + *=========================================================================*/ + + typedef enum + { + cbSTATUS_OK, + cbSTATUS_ERROR, + cbSTATUS_BUSY, + cbSTATUS_RECEIVE_DATA_MODE, + cbSTATUS_TIMEOUT + + } cbRTSL_Status; + +#endif /* _CB_STATUS_H_ */ +