Changeset 429 for EcnlProtoTool/trunk/asp3_dcre/mbed/hal/analogin_api.h
- Timestamp:
- Jul 3, 2020, 7:19:17 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
EcnlProtoTool/trunk/asp3_dcre/mbed/hal/analogin_api.h
r321 r429 1 2 /** \addtogroup hal */ 3 /** @{*/ 1 4 /* mbed Microcontroller Library 2 5 * Copyright (c) 2006-2013 ARM Limited … … 25 28 #endif 26 29 30 /** Analogin hal structure. analogin_s is declared in the target's hal 31 */ 27 32 typedef struct analogin_s analogin_t; 28 33 29 void analogin_init (analogin_t *obj, PinName pin); 30 float analogin_read (analogin_t *obj); 34 /** 35 * \defgroup hal_analogin Analogin hal functions 36 * @{ 37 */ 38 39 /** Initialize the analogin peripheral 40 * 41 * Configures the pin used by analogin. 42 * @param obj The analogin object to initialize 43 * @param pin The analogin pin name 44 */ 45 void analogin_init(analogin_t *obj, PinName pin); 46 47 /** Read the input voltage, represented as a float in the range [0.0, 1.0] 48 * 49 * @param obj The analogin object 50 * @return A floating value representing the current input voltage 51 */ 52 float analogin_read(analogin_t *obj); 53 54 /** Read the value from analogin pin, represented as an unsigned 16bit value 55 * 56 * @param obj The analogin object 57 * @return An unsigned 16bit value representing the current input voltage 58 */ 31 59 uint16_t analogin_read_u16(analogin_t *obj); 60 61 /**@}*/ 32 62 33 63 #ifdef __cplusplus … … 38 68 39 69 #endif 70 71 /** @}*/
Note:
See TracChangeset
for help on using the changeset viewer.