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 XBeeLib by
Diff: IO/IO.h
- Revision:
- 0:fcaad0dfa051
- Child:
- 3:8662ebe83570
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/IO/IO.h Fri May 08 11:50:56 2015 +0200 @@ -0,0 +1,62 @@ +/** + * Copyright (c) 2015 Digi International Inc., + * All rights not expressly granted are reserved. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this file, + * You can obtain one at http://mozilla.org/MPL/2.0/. + * + * Digi International Inc. 11001 Bren Road East, Minnetonka, MN 55343 + * ======================================================================= + */ + +#if !defined(__IO_H_) +#define __IO_H_ + +#define DR_PWM_MAX_VAL 0x3FF + +#define MAX_IO_SAMPLE_BUF_LEN 22 /* 1 + 2 + 1 + 2 + 16 */ + +namespace XBeeLib { + +/** + * @defgroup IoMode + * @{ + */ +/** + * IoMode + */ +enum IoMode { + Disabled = 0, /**< Disabled */ + SpecialFunc = 1, /**< Special Function */ + Adc = 2, /**< Adc */ + Pwm = 2, /**< Pwm */ + DigitalInput = 3, /**< Digital Input */ + DigitalOutLow = 4, /**< Digital Out Low */ + DigitalOutHigh = 5, /**< Digital Out High */ +}; +/** + * @} + */ + +/** + * @defgroup DioVal + * @{ + */ +/** + * DioVal + */ +enum DioVal { + Low = 0, /**< Low Value */ + High = 1, /**< High Value */ +}; +/** + * @} + */ + +} /* namespace XBeeLib */ + + +#endif /* __IO_H_ */ + +