mbed library sources
Fork of mbed-src by
targets/hal/TARGET_Atmel/TARGET_SAM21/drivers/extint/extint_callback.h@592:a274ee790e56, 2015-07-17 (annotated)
- Committer:
- mbed_official
- Date:
- Fri Jul 17 09:15:10 2015 +0100
- Revision:
- 592:a274ee790e56
- Parent:
- 579:53297373a894
Synchronized with git revision e7144f83a8d75df80c4877936b6ffe552b0be9e6
Full URL: https://github.com/mbedmicro/mbed/commit/e7144f83a8d75df80c4877936b6ffe552b0be9e6/
More API implementation for SAMR21
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 579:53297373a894 | 1 | #ifndef EXTINT_CALLBACK_H_INCLUDED |
mbed_official | 579:53297373a894 | 2 | #define EXTINT_CALLBACK_H_INCLUDED |
mbed_official | 579:53297373a894 | 3 | |
mbed_official | 579:53297373a894 | 4 | #include <compiler.h> |
mbed_official | 579:53297373a894 | 5 | |
mbed_official | 579:53297373a894 | 6 | #ifdef __cplusplus |
mbed_official | 579:53297373a894 | 7 | extern "C" { |
mbed_official | 579:53297373a894 | 8 | #endif |
mbed_official | 579:53297373a894 | 9 | |
mbed_official | 579:53297373a894 | 10 | /** |
mbed_official | 579:53297373a894 | 11 | * \addtogroup asfdoc_sam0_extint_group |
mbed_official | 579:53297373a894 | 12 | * |
mbed_official | 579:53297373a894 | 13 | * @{ |
mbed_official | 579:53297373a894 | 14 | */ |
mbed_official | 579:53297373a894 | 15 | |
mbed_official | 579:53297373a894 | 16 | /** \name Callback Configuration and Initialization |
mbed_official | 579:53297373a894 | 17 | * @{ |
mbed_official | 579:53297373a894 | 18 | */ |
mbed_official | 579:53297373a894 | 19 | |
mbed_official | 579:53297373a894 | 20 | /** Enum for the possible callback types for the EXTINT module. */ |
mbed_official | 579:53297373a894 | 21 | enum extint_callback_type { |
mbed_official | 579:53297373a894 | 22 | /** Callback type for when an external interrupt detects the configured |
mbed_official | 579:53297373a894 | 23 | * channel criteria (i.e. edge or level detection) |
mbed_official | 579:53297373a894 | 24 | */ |
mbed_official | 579:53297373a894 | 25 | EXTINT_CALLBACK_TYPE_DETECT, |
mbed_official | 579:53297373a894 | 26 | }; |
mbed_official | 579:53297373a894 | 27 | |
mbed_official | 579:53297373a894 | 28 | enum status_code extint_register_callback( |
mbed_official | 579:53297373a894 | 29 | const extint_callback_t callback, |
mbed_official | 579:53297373a894 | 30 | const uint8_t channel, |
mbed_official | 579:53297373a894 | 31 | const enum extint_callback_type type); |
mbed_official | 579:53297373a894 | 32 | |
mbed_official | 579:53297373a894 | 33 | enum status_code extint_unregister_callback( |
mbed_official | 579:53297373a894 | 34 | const extint_callback_t callback, |
mbed_official | 579:53297373a894 | 35 | const uint8_t channel, |
mbed_official | 579:53297373a894 | 36 | const enum extint_callback_type type); |
mbed_official | 579:53297373a894 | 37 | |
mbed_official | 579:53297373a894 | 38 | uint8_t extint_get_current_channel(void); |
mbed_official | 579:53297373a894 | 39 | |
mbed_official | 579:53297373a894 | 40 | /** @} */ |
mbed_official | 579:53297373a894 | 41 | |
mbed_official | 579:53297373a894 | 42 | /** \name Callback Enabling and Disabling (Channel) |
mbed_official | 579:53297373a894 | 43 | * @{ |
mbed_official | 579:53297373a894 | 44 | */ |
mbed_official | 579:53297373a894 | 45 | |
mbed_official | 579:53297373a894 | 46 | enum status_code extint_chan_enable_callback( |
mbed_official | 579:53297373a894 | 47 | const uint8_t channel, |
mbed_official | 579:53297373a894 | 48 | const enum extint_callback_type type); |
mbed_official | 579:53297373a894 | 49 | |
mbed_official | 579:53297373a894 | 50 | enum status_code extint_chan_disable_callback( |
mbed_official | 579:53297373a894 | 51 | const uint8_t channel, |
mbed_official | 579:53297373a894 | 52 | const enum extint_callback_type type); |
mbed_official | 579:53297373a894 | 53 | |
mbed_official | 579:53297373a894 | 54 | /** @} */ |
mbed_official | 579:53297373a894 | 55 | |
mbed_official | 579:53297373a894 | 56 | /** @} */ |
mbed_official | 579:53297373a894 | 57 | |
mbed_official | 579:53297373a894 | 58 | #ifdef __cplusplus |
mbed_official | 579:53297373a894 | 59 | } |
mbed_official | 579:53297373a894 | 60 | #endif |
mbed_official | 579:53297373a894 | 61 | |
mbed_official | 579:53297373a894 | 62 | #endif |