UVic Assistive Technology Lab / Mbed 2 deprecated DSLR_Camera_Gimbal

Dependencies:   mbed ros_lib_kinetic

Committer:
group-UVic-Assistive-Technolog
Date:
Wed Jan 31 05:24:12 2018 +0000
Revision:
0:3a767f41cf04
Initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
group-UVic-Assistive-Technolog 0:3a767f41cf04 1 /* mbed Microcontroller Library
group-UVic-Assistive-Technolog 0:3a767f41cf04 2 * Copyright (c) 2015 ARM Limited
group-UVic-Assistive-Technolog 0:3a767f41cf04 3 *
group-UVic-Assistive-Technolog 0:3a767f41cf04 4 * Licensed under the Apache License, Version 2.0 (the "License");
group-UVic-Assistive-Technolog 0:3a767f41cf04 5 * you may not use this file except in compliance with the License.
group-UVic-Assistive-Technolog 0:3a767f41cf04 6 * You may obtain a copy of the License at
group-UVic-Assistive-Technolog 0:3a767f41cf04 7 *
group-UVic-Assistive-Technolog 0:3a767f41cf04 8 * http://www.apache.org/licenses/LICENSE-2.0
group-UVic-Assistive-Technolog 0:3a767f41cf04 9 *
group-UVic-Assistive-Technolog 0:3a767f41cf04 10 * Unless required by applicable law or agreed to in writing, software
group-UVic-Assistive-Technolog 0:3a767f41cf04 11 * distributed under the License is distributed on an "AS IS" BASIS,
group-UVic-Assistive-Technolog 0:3a767f41cf04 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
group-UVic-Assistive-Technolog 0:3a767f41cf04 13 * See the License for the specific language governing permissions and
group-UVic-Assistive-Technolog 0:3a767f41cf04 14 * limitations under the License.
group-UVic-Assistive-Technolog 0:3a767f41cf04 15 */
group-UVic-Assistive-Technolog 0:3a767f41cf04 16 #ifndef MBED_LPTICKER_API_H
group-UVic-Assistive-Technolog 0:3a767f41cf04 17 #define MBED_LPTICKER_API_H
group-UVic-Assistive-Technolog 0:3a767f41cf04 18
group-UVic-Assistive-Technolog 0:3a767f41cf04 19 #include "device.h"
group-UVic-Assistive-Technolog 0:3a767f41cf04 20
group-UVic-Assistive-Technolog 0:3a767f41cf04 21 #if DEVICE_LOWPOWERTIMER
group-UVic-Assistive-Technolog 0:3a767f41cf04 22
group-UVic-Assistive-Technolog 0:3a767f41cf04 23 #include "ticker_api.h"
group-UVic-Assistive-Technolog 0:3a767f41cf04 24
group-UVic-Assistive-Technolog 0:3a767f41cf04 25 #ifdef __cplusplus
group-UVic-Assistive-Technolog 0:3a767f41cf04 26 extern "C" {
group-UVic-Assistive-Technolog 0:3a767f41cf04 27 #endif
group-UVic-Assistive-Technolog 0:3a767f41cf04 28
group-UVic-Assistive-Technolog 0:3a767f41cf04 29 /**
group-UVic-Assistive-Technolog 0:3a767f41cf04 30 * \defgroup LpTicker Low Power Ticker Functions
group-UVic-Assistive-Technolog 0:3a767f41cf04 31 * @{
group-UVic-Assistive-Technolog 0:3a767f41cf04 32 */
group-UVic-Assistive-Technolog 0:3a767f41cf04 33
group-UVic-Assistive-Technolog 0:3a767f41cf04 34 /** Get low power ticker's data
group-UVic-Assistive-Technolog 0:3a767f41cf04 35 *
group-UVic-Assistive-Technolog 0:3a767f41cf04 36 * @return The low power ticker data
group-UVic-Assistive-Technolog 0:3a767f41cf04 37 */
group-UVic-Assistive-Technolog 0:3a767f41cf04 38 const ticker_data_t* get_lp_ticker_data(void);
group-UVic-Assistive-Technolog 0:3a767f41cf04 39
group-UVic-Assistive-Technolog 0:3a767f41cf04 40 /** The wrapper for ticker_irq_handler, to pass lp ticker's data
group-UVic-Assistive-Technolog 0:3a767f41cf04 41 *
group-UVic-Assistive-Technolog 0:3a767f41cf04 42 */
group-UVic-Assistive-Technolog 0:3a767f41cf04 43 void lp_ticker_irq_handler(void);
group-UVic-Assistive-Technolog 0:3a767f41cf04 44
group-UVic-Assistive-Technolog 0:3a767f41cf04 45 /* HAL lp ticker */
group-UVic-Assistive-Technolog 0:3a767f41cf04 46
group-UVic-Assistive-Technolog 0:3a767f41cf04 47 /** Initialize the low power ticker
group-UVic-Assistive-Technolog 0:3a767f41cf04 48 *
group-UVic-Assistive-Technolog 0:3a767f41cf04 49 */
group-UVic-Assistive-Technolog 0:3a767f41cf04 50 void lp_ticker_init(void);
group-UVic-Assistive-Technolog 0:3a767f41cf04 51
group-UVic-Assistive-Technolog 0:3a767f41cf04 52 /** Read the current counter
group-UVic-Assistive-Technolog 0:3a767f41cf04 53 *
group-UVic-Assistive-Technolog 0:3a767f41cf04 54 * @return The current timer's counter value in microseconds
group-UVic-Assistive-Technolog 0:3a767f41cf04 55 */
group-UVic-Assistive-Technolog 0:3a767f41cf04 56 uint32_t lp_ticker_read(void);
group-UVic-Assistive-Technolog 0:3a767f41cf04 57
group-UVic-Assistive-Technolog 0:3a767f41cf04 58 /** Set interrupt for specified timestamp
group-UVic-Assistive-Technolog 0:3a767f41cf04 59 *
group-UVic-Assistive-Technolog 0:3a767f41cf04 60 * @param timestamp The time in microseconds to be set
group-UVic-Assistive-Technolog 0:3a767f41cf04 61 */
group-UVic-Assistive-Technolog 0:3a767f41cf04 62 void lp_ticker_set_interrupt(timestamp_t timestamp);
group-UVic-Assistive-Technolog 0:3a767f41cf04 63
group-UVic-Assistive-Technolog 0:3a767f41cf04 64 /** Disable low power ticker interrupt
group-UVic-Assistive-Technolog 0:3a767f41cf04 65 *
group-UVic-Assistive-Technolog 0:3a767f41cf04 66 */
group-UVic-Assistive-Technolog 0:3a767f41cf04 67 void lp_ticker_disable_interrupt(void);
group-UVic-Assistive-Technolog 0:3a767f41cf04 68
group-UVic-Assistive-Technolog 0:3a767f41cf04 69 /** Clear the low power ticker interrupt
group-UVic-Assistive-Technolog 0:3a767f41cf04 70 *
group-UVic-Assistive-Technolog 0:3a767f41cf04 71 */
group-UVic-Assistive-Technolog 0:3a767f41cf04 72 void lp_ticker_clear_interrupt(void);
group-UVic-Assistive-Technolog 0:3a767f41cf04 73
group-UVic-Assistive-Technolog 0:3a767f41cf04 74 /**@}*/
group-UVic-Assistive-Technolog 0:3a767f41cf04 75
group-UVic-Assistive-Technolog 0:3a767f41cf04 76 #ifdef __cplusplus
group-UVic-Assistive-Technolog 0:3a767f41cf04 77 }
group-UVic-Assistive-Technolog 0:3a767f41cf04 78 #endif
group-UVic-Assistive-Technolog 0:3a767f41cf04 79
group-UVic-Assistive-Technolog 0:3a767f41cf04 80 #endif
group-UVic-Assistive-Technolog 0:3a767f41cf04 81
group-UVic-Assistive-Technolog 0:3a767f41cf04 82 #endif