Ignore:
Timestamp:
Jul 3, 2020, 7:19:17 PM (4 years ago)
Author:
coas-nagasima
Message:

ASP3, TINET, mbed を更新

File:
1 edited

Legend:

Unmodified
Added
Removed
  • EcnlProtoTool/trunk/asp3_dcre/mbed/hal/analogin_api.h

    r321 r429  
     1
     2/** \addtogroup hal */
     3/** @{*/
    14/* mbed Microcontroller Library
    25 * Copyright (c) 2006-2013 ARM Limited
     
    2528#endif
    2629
     30/** Analogin hal structure. analogin_s is declared in the target's hal
     31 */
    2732typedef struct analogin_s analogin_t;
    2833
    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 */
     45void 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 */
     52float 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 */
    3159uint16_t analogin_read_u16(analogin_t *obj);
     60
     61/**@}*/
    3262
    3363#ifdef __cplusplus
     
    3868
    3969#endif
     70
     71/** @}*/
Note: See TracChangeset for help on using the changeset viewer.