# ecrobot::Nxt Class Reference

NXT intelligent block class. More...

`#include <Nxt.h>`

List of all members.

## Public Types
enum | eButton { RUN_ON = 0x01, ENTR_ON = 0x02, RUN_ENTR_ON = (RUN_ON | ENTR_ON), BUTTONS_OFF = 0x00 }
| NXT Button enum. More...
## Public Member Functions
| Nxt (void)
| Constructor.
eButton | getButtons (void) const
| Get NXT buttons status.
S16 | getBattMv (void) const
| Get battery voltage in mV.

## Detailed Description

NXT intelligent block class.

## Member Enumeration Documentation

enum ecrobot::Nxt::eButton

NXT Button enum.

Enumerator:

  RUN_ON | RUN (right triangle) button is ON.
  ENTR_ON | ENTR(orange rectangle) button is ON.
  RUN_ENTR_ON | RUN and ENTR buttons are ON.
  BUTTONS_OFF | RUN and ENTR buttons are OFF.

## Constructor & Destructor Documentation

ecrobot::Nxt::Nxt | ( | void |  | ) |

Constructor.

Parameters:

  | - |

Returns:
  -

## Member Function Documentation

S16 ecrobot::Nxt::getBattMv | ( | void |  | ) | const

Get battery voltage in mV.

Parameters:

  | - |

Returns:
  Battery voltage in mV

eButton ecrobot::Nxt::getButtons | ( | void |  | ) | const

Get NXT buttons status.

Parameters:

  | - |

Returns:
  Status of RUN/ENTR buttons

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

- device/Nxt.h