29.11.2014 Views

Fast Models Reference Manual - ARM Information Center

Fast Models Reference Manual - ARM Information Center

Fast Models Reference Manual - ARM Information Center

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Peripheral and Interface Components<br />

a. The MouseStatus protocol is documented in Visualization Library on page 5-149.<br />

MouseStatus<br />

The PS2Mouse component has one additional protocol.<br />

The MouseStatus protocol is used to pass mouse movement and button events to another<br />

component such as the PS2Mouse component. Events are only sent when the visualization<br />

window is in focus.<br />

The protocol behaviors are:<br />

mouseMove(int dx, int dy) : void<br />

This is sent when the host mouse is moved. Mouse movement events are always<br />

relative.<br />

mouseButton(uint8_t button, bool down) : void<br />

This is sent when a button on the host mouse is pressed or released.<br />

button indicates which button has been pressed or released and is typically 0,1 or<br />

2 but can be anything up to 7 depending on the OS and attached mouse.<br />

down is true if a button is pressed and false if released.<br />

Parameters<br />

The PS2Mouse component has no parameters.<br />

Registers<br />

The PS2Mouse component has no registers.<br />

Debug features<br />

The PS2Mouse component has no debug features.<br />

Verification and testing<br />

The PS2Mouse component has been tested as part of the VE example system using VE test<br />

suites and by booting operating systems.<br />

Performance<br />

The PS2Mouse component is not expected to significantly affect the performance of a PV<br />

system. However if it is connected to the Visualisation component, then the performance of the<br />

component is dependent on that of the visualization.<br />

Library dependencies<br />

The PS2Mouse component has no dependencies on external libraries.<br />

5.4.14 PL061_GPIO component<br />

The General Purpose Input/Output (GPIO) component is a programmer's view model of the<br />

<strong>ARM</strong> PL061 PrimeCell. It provides eight programmable inputs or outputs. Ports of different<br />

widths can be created by multiple instantiation. In addition, an interrupt interface is provided to<br />

<strong>ARM</strong> DUI 0423J Copyright © 2008-2011 <strong>ARM</strong>. All rights reserved. 5-63<br />

ID051811<br />

Non-Confidential

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!