Hotwheels-Cluster 1.2
Creation of Cluster APP for SEA:ME project.
 
Loading...
Searching...
No Matches
IPeripheralController Class Referenceabstract

Interface for the peripheral controller. More...

#include <IPeripheralController.hpp>

Public Member Functions

virtual ~IPeripheralController ()=default
 
virtual int i2c_smbus_write_byte_data (int file, uint8_t command, uint8_t value)=0
 
virtual int i2c_smbus_read_byte_data (int file, uint8_t command)=0
 
virtual void write_byte_data (int fd, int reg, int value)=0
 
virtual int read_byte_data (int fd, int reg)=0
 
virtual void set_servo_pwm (int channel, int on_value, int off_value)=0
 
virtual void set_motor_pwm (int channel, int value)=0
 
virtual void init_servo ()=0
 
virtual void init_motors ()=0
 

Detailed Description

Interface for the peripheral controller.

Definition at line 31 of file IPeripheralController.hpp.

Constructor & Destructor Documentation

◆ ~IPeripheralController()

virtual IPeripheralController::~IPeripheralController ( )
virtualdefault

Member Function Documentation

◆ i2c_smbus_read_byte_data()

virtual int IPeripheralController::i2c_smbus_read_byte_data ( int file,
uint8_t command )
pure virtual

Implemented in PeripheralController.

Here is the caller graph for this function:

◆ i2c_smbus_write_byte_data()

virtual int IPeripheralController::i2c_smbus_write_byte_data ( int file,
uint8_t command,
uint8_t value )
pure virtual

Implemented in PeripheralController.

Here is the caller graph for this function:

◆ init_motors()

virtual void IPeripheralController::init_motors ( )
pure virtual

Implemented in PeripheralController.

Here is the caller graph for this function:

◆ init_servo()

virtual void IPeripheralController::init_servo ( )
pure virtual

Implemented in PeripheralController.

Here is the caller graph for this function:

◆ read_byte_data()

virtual int IPeripheralController::read_byte_data ( int fd,
int reg )
pure virtual

Implemented in PeripheralController.

Here is the caller graph for this function:

◆ set_motor_pwm()

virtual void IPeripheralController::set_motor_pwm ( int channel,
int value )
pure virtual

Implemented in PeripheralController.

Here is the caller graph for this function:

◆ set_servo_pwm()

virtual void IPeripheralController::set_servo_pwm ( int channel,
int on_value,
int off_value )
pure virtual

Implemented in PeripheralController.

Here is the caller graph for this function:

◆ write_byte_data()

virtual void IPeripheralController::write_byte_data ( int fd,
int reg,
int value )
pure virtual

Implemented in PeripheralController.

Here is the caller graph for this function:

The documentation for this class was generated from the following file: