InterruptIn style DigitalIn debounced with callbacks for pin state change and pin state hold.
Fork of PinDetect by
ChangeLog.h@2:cb3afc45028b, 2011-01-13 (annotated)
- Committer:
- AjK
- Date:
- Thu Jan 13 11:09:22 2011 +0000
- Revision:
- 2:cb3afc45028b
- Parent:
- 1:611a8f5ac65c
1.5 See ChangeLog.h
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
AjK | 0:4f4ccb203a70 | 1 | /* |
AjK | 0:4f4ccb203a70 | 2 | Copyright (c) 2010 Andy Kirkham |
AjK | 0:4f4ccb203a70 | 3 | |
AjK | 0:4f4ccb203a70 | 4 | Permission is hereby granted, free of charge, to any person obtaining a copy |
AjK | 0:4f4ccb203a70 | 5 | of this software and associated documentation files (the "Software"), to deal |
AjK | 0:4f4ccb203a70 | 6 | in the Software without restriction, including without limitation the rights |
AjK | 0:4f4ccb203a70 | 7 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
AjK | 0:4f4ccb203a70 | 8 | copies of the Software, and to permit persons to whom the Software is |
AjK | 0:4f4ccb203a70 | 9 | furnished to do so, subject to the following conditions: |
AjK | 0:4f4ccb203a70 | 10 | |
AjK | 0:4f4ccb203a70 | 11 | The above copyright notice and this permission notice shall be included in |
AjK | 0:4f4ccb203a70 | 12 | all copies or substantial portions of the Software. |
AjK | 0:4f4ccb203a70 | 13 | |
AjK | 0:4f4ccb203a70 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
AjK | 0:4f4ccb203a70 | 15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
AjK | 0:4f4ccb203a70 | 16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
AjK | 0:4f4ccb203a70 | 17 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
AjK | 0:4f4ccb203a70 | 18 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
AjK | 0:4f4ccb203a70 | 19 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
AjK | 0:4f4ccb203a70 | 20 | THE SOFTWARE. |
AjK | 0:4f4ccb203a70 | 21 | |
AjK | 2:cb3afc45028b | 22 | 1.5 13 Jan 2011 - Made the isr() protected and made the class a friend of Ticker. |
AjK | 2:cb3afc45028b | 23 | Read the previous state and store when the sample frequency is |
AjK | 2:cb3afc45028b | 24 | set so that initial assert_deassert_held() isn't called at startup. |
AjK | 2:cb3afc45028b | 25 | |
AjK | 1:611a8f5ac65c | 26 | 1.4 13 Jan 2011 - Added an extra overloaded constructor that allows |
AjK | 1:611a8f5ac65c | 27 | the DigitalIn PinMode to be passed when the the class |
AjK | 1:611a8f5ac65c | 28 | is declared. So mode() isn't really needed but is left |
AjK | 1:611a8f5ac65c | 29 | in for completeness. |
AjK | 1:611a8f5ac65c | 30 | |
AjK | 0:4f4ccb203a70 | 31 | 1.3 13 Jan 2011 - Updated some doxygen comments. |
AjK | 0:4f4ccb203a70 | 32 | |
AjK | 0:4f4ccb203a70 | 33 | 1.2 13 Jan 2011 - Added ChangeLog.h file. |
AjK | 0:4f4ccb203a70 | 34 | |
AjK | 0:4f4ccb203a70 | 35 | 1.1 13 Jan 2011 - Fixed some typos. |
AjK | 0:4f4ccb203a70 | 36 | |
AjK | 0:4f4ccb203a70 | 37 | 1.0 13 Jan 2011 - Initial release. |
AjK | 0:4f4ccb203a70 | 38 | |
AjK | 0:4f4ccb203a70 | 39 | */ |