Public Member Functions | Friends

PitCounter Class Reference

PIT8254 emulation. More...

Inheritance diagram for PitCounter:
StaticReceiver< PitCounter > Device

List of all members.

Public Member Functions

void read_back (unsigned char value)
void set_modus (unsigned char modus)
 Set the modus of the counter.
void set_gate (unsigned char value)
 Manipulate the gate.
bool get_out ()
unsigned char read ()
 Read from the counter port.
void write (unsigned char value)
 Write to the counter port.
bool receive (MessageIrqNotify &msg)
bool receive (MessageTimeout &msg)
 PitCounter (DBus< MessageTimer > *bus_timer, DBus< MessageIrq > *bus_irq, unsigned irq, Clock *clock)
 PitCounter ()

Friends

class PitTest

Detailed Description

PIT8254 emulation.

Copyright (C) 2007-2009, Bernhard Kauer <bk@vmmon.org> Economic rights: Technische Universitaet Dresden (Germany)

This file is part of Vancouver.

Vancouver is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

Vancouver is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License version 2 for more details. A single counter of a PIT.

State: stable Implementation Note: the access to the _modus variable is not SMP safe. Documentation: Intel 82c54 - intel-82c54-timer.pdf


Constructor & Destructor Documentation

PitCounter::PitCounter ( DBus< MessageTimer > *  bus_timer,
DBus< MessageIrq > *  bus_irq,
unsigned  irq,
Clock clock 
) [inline]
PitCounter::PitCounter (  )  [inline]

Member Function Documentation

bool PitCounter::get_out (  )  [inline]
unsigned char PitCounter::read (  )  [inline]

Read from the counter port.

void PitCounter::read_back ( unsigned char  value  )  [inline]
bool PitCounter::receive ( MessageTimeout msg  )  [inline]
bool PitCounter::receive ( MessageIrqNotify msg  )  [inline]
void PitCounter::set_gate ( unsigned char  value  )  [inline]

Manipulate the gate.

void PitCounter::set_modus ( unsigned char  modus  )  [inline]

Set the modus of the counter.

void PitCounter::write ( unsigned char  value  )  [inline]

Write to the counter port.


Friends And Related Function Documentation

friend class PitTest [friend]

Member Data Documentation

unsigned char PitCounter::_gate
unsigned char PitCounter::_latched
unsigned char PitCounter::_lstatus
unsigned char PitCounter::_read_low
unsigned char PitCounter::_stopped
unsigned char PitCounter::_stopped_out
unsigned char PitCounter::_wrote_low

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines