Skip to content

Namespace hal::soft

Namespace List > hal > soft

Classes

Type Name
class adc_multiplexer
A driver for an ADC multiplexer that manages and reads ADC mux pins. This driver is intended to be used with multiplexers that use digital signals. An ADC multiplexer can be used to expand the number of input channels of an ADC.
class adc_mux_pin
A class that represents a multiplexer pin for ADC.
class inert_accelerometer
Inert implementation of acceleration sensing hardware.
class inert_adc
Inert implementation of Analog to Digital Converter (ADC) hardware.
class inert_dac
Inert implementation of Digital to Analog Converter (DAC) hardware.
class inert_distance_sensor
Inert implementation of linear distance hardware.
class inert_gyroscope
Inert implementation of angular velocity sensing hardware.
class inert_input_pin
Inert implementation of digital input pin hardware.
class inert_interrupt_pin
Inert implementation of digital interrupt pin hardware.
class inert_magnetometer
Inert implementation of magnetic field strength sensing hardware.
class inert_motor
Inert implementation of open loop motorized actuator hardware.
class inert_output_pin
Inert implementation of digital output pin hardware.
class inert_pwm
Inert implementation of Pulse Width Modulation (PWM) channel hardware.
class inert_rotation_sensor
Inert implementation of rotation measuring hardware.
class inert_steady_clock
Inert implementation of steady clock mechanism.
class inert_temperature_sensor
Inert implementation of temperature sensing hardware.
class inert_timer
Inert implementation of timer hardware.
class input_pin_inverter
class minimum_speed_i2c
A i2c wrapper to ensure that the lowesti2c device frequency is used.
class output_pin_inverter
class rc_servo
Generic RC servo driver.

Public Functions

Type Name
result< adc_mux_pin > make_adc (adc_multiplexer & p_multiplexer, std::uint8_t p_channel)
Returns an ADC pin from the multiplexer.

Public Functions Documentation

function make_adc

Returns an ADC pin from the multiplexer.

result< adc_mux_pin > hal::soft::make_adc (
    adc_multiplexer & p_multiplexer,
    std::uint8_t p_channel
) 

Parameters:

  • p_multiplexer the adc multiplexer with the desire adc channel pin
  • p_channel The channel number of the pin

Returns:

A newly constructed ADC multiplexer pin.

Exception:

  • std::errc::result_out_of_range if p_channel greater than the available number of channels in the multiplexer.

The documentation for this class was generated from the following file libraries/include/libhal-soft/adc_mux.hpp