Skip to content

Namespace hal::mock

Namespace List > hal > mock

Classes

Type Name
struct adc
Mock adc implementation for use in unit tests and simulations.
struct can
Mock can implementation for use in unit tests and simulations.
struct dac
Mock dac implementation for use in unit tests and simulations with a spy function for write() __
struct input_pin
mock input_pin implementation for use in unit tests and simulations.
struct interrupt_pin
mock interrupt_pin implementation for use in unit tests and simulations.
struct motor
Mock motor implementation for use in unit tests and simulations with a spy function for power() __
struct output_pin
mock output pin for use in unit tests and simulations
struct pwm
Mock pwm implementation for use in unit tests and simulations with spy functions for frequency() andduty_cycle() .
struct servo
Mock servo implementation for use in unit tests and simulations with a spy function for position() __
struct steady_clock
mock steady_clock implementation for use in unit tests and simulations.
struct timer
Mock timer implementation for use in unit tests and simulations with spy functions for schedule() , clear(), andis_running() __
struct write_only_spi
Mock spi implementation for use in unit tests and simulations with a spy functions for configure() and a record for thetransfer() out data. The record ignores the in buffer and just stores the data being sent so it can be inspected later.

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