[][src]Struct spectrusty::peripherals::bus::ay::serial128::SerialKeypad

pub struct SerialKeypad<T> { /* fields omitted */ }

The ZX Spectrum 128 extension keypad.

For the history of this rare and often omitted in emulators device see: Spectrum128Keypad.htm.

+-------+  +-------+  +-------+  +-------+
| DEL ← |  | ↑     |  | DEL → |  |TOGGLE |
|   /   |  |   *   |  |   (   |  |   )   |
+-------+  +-------+  +-------+  +-------+

+-------+  +-------+  +-------+  +-------+
| ←     |  | ↓     |  | →     |  | CMND  |
|   7   |  |   8   |  |   9   |  |   -   |
+-------+  +-------+  +-------+  +-------+

+-------+  +-------+  +-------+  +-------+
|<< DEL |  |>> DEL |  |↑↑     |  |↑↑     |
|   4   |  |   5   |  |   6   |  |   +   |
+-------+  +-------+  +-------+  +-------+

+-------+  +-------+  +-------+  +-------+
||<< DEL|  |>>| DEL|  |⭱⭱     |  |   E   |
|   1   |  |   2   |  |   3   |  |   N   |
+-------+  +-------+  +-------+  |   T   |
                                 |   E   |
+------------------+  +-------+  |   R   |
|            SHIFT |  |⭳⭳     |  |       |
|         0        |  |   .   |  |   =   |
+------------------+  +-------+  +-------+

The extension keypad communicates with Spectrum using a unique protocol over the computer's serial connector.

This type implements SerialPortDevice bringing the extension keypad to its virtual existence.

To change the keypad state use methods directly on the implementation of this type.

Implementations

impl<T> SerialKeypad<T>[src]

pub fn get_key_state(&self) -> KeypadKeys[src]

Reads the current state of the keypad.

pub fn set_key_state(&mut self, keys: KeypadKeys)[src]

Sets the state of the keypad.

Trait Implementations

impl<T> Clone for SerialKeypad<T> where
    T: Clone
[src]

impl<T> Debug for SerialKeypad<T> where
    T: Debug
[src]

impl<T> Default for SerialKeypad<T> where
    T: Default + TimestampOps
[src]

impl<'de, T> Deserialize<'de> for SerialKeypad<T> where
    T: Deserialize<'de>, 
[src]

impl<T> SerialPortDevice for SerialKeypad<T> where
    T: TimestampOps
[src]

type Timestamp = T

impl<T> Serialize for SerialKeypad<T> where
    T: Serialize
[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for SerialKeypad<T> where
    T: RefUnwindSafe
[src]

impl<T> Send for SerialKeypad<T> where
    T: Send
[src]

impl<T> Sync for SerialKeypad<T> where
    T: Sync
[src]

impl<T> Unpin for SerialKeypad<T> where
    T: Unpin
[src]

impl<T> UnwindSafe for SerialKeypad<T> where
    T: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Conv for T

impl<T> Conv for T

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<S, T> IntoSample<S> for T where
    S: FromSample<T>, 
[src]

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryConv for T

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,