temp

Dependencies:   mbed SDFileSystem MS5607 ADXL345_I2C FATFileSystem

Committer:
IKobayashi
Date:
Mon Mar 16 23:37:42 2020 +0900
Revision:
0:c88c3b616c00
copy

Who changed what in which revision?

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