20#ifndef MBED_ANALOGOUT_API_H
21#define MBED_ANALOGOUT_API_H
void analogout_write(dac_t *obj, float value)
Set the output voltage, specified as a percentage (float)
void analogout_init(dac_t *obj, PinName pin)
Initialize the analogout peripheral.
void analogout_init_direct(dac_t *obj, const PinMap *pinmap)
Initialize the analogout peripheral.
uint16_t analogout_read_u16(dac_t *obj)
Read the current voltage value on the pin, as a normalized unsigned 16bit value.
const PinMap * analogout_pinmap(void)
Get the pins that support analogout.
void analogout_write_u16(dac_t *obj, uint16_t value)
Set the output voltage, specified as unsigned 16-bit.
void analogout_free(dac_t *obj)
Release the analogout object.
float analogout_read(dac_t *obj)
Read the current voltage value on the pin.
struct dac_s dac_t
Analogout hal structure.