REB Class Reference
Public Member Functions | |
REB (ConfigFile *cf, int section) | |
virtual void | Main () |
Main method for driver thread. | |
int | ProcessMessage (ClientData *client, player_msghdr *hdr, uint8_t *data, uint8_t *resp_data, size_t *resp_len) |
virtual int | Subscribe (player_device_id_t id) |
virtual int | Unsubscribe (player_device_id_t id) |
virtual int | Setup () |
Initialize the driver. | |
virtual int | Shutdown () |
Finalize the driver. | |
void | Restart () |
void | ReadConfig () |
void | SetOdometry (int, int, short) |
void | SetIRState (int) |
void | UpdateData (void) |
void | UpdateIRData (player_ir_data_t *) |
void | UpdatePowerData (player_power_data_t *) |
void | UpdatePosData (player_position_data_t *) |
void | ConfigAD (int, int) |
unsigned short | ReadAD (int) |
void | ReadAllIR (uint16_t *ir) |
void | SetSpeed (int, int) |
int | ReadSpeed (int) |
void | SetPos (int, int) |
void | SetPosCounter (int, int) |
int | ReadPos (int) |
unsigned char | ReadStatus (int, int *, int *) |
void | ConfigPosPID (int, int, int, int) |
void | ConfigSpeedPID (int, int, int, int) |
void | ConfigSpeedProfile (int, int, int) |
Member Function Documentation
void REB::Main | ( | ) | [virtual] |
Main method for driver thread.
drivers have their own thread of execution, created using StartThread(); this is the entry point for the driver thread, and must be overloaded by all threaded drivers.
Reimplemented from Driver.
References PLAYER_MSGTYPE_DATA, and Driver::ProcessMessages().
int REB::Setup | ( | ) | [virtual] |
Initialize the driver.
This function is called with the first client subscribes; it MUST be implemented by the driver.
- Returns:
- Returns 0 on success.
Implements Driver.
int REB::Shutdown | ( | ) | [virtual] |
Finalize the driver.
This function is called with the last client unsubscribes; it MUST be implemented by the driver.
- Returns:
- Returns 0 on success.
Implements Driver.
References Driver::StopThread().
The documentation for this class was generated from the following files:
- reb.h
- reb.cc