CDL Modules
Data Structures
input_devices.h File Reference

Input device header file for CDL modules. More...

Detailed Description

Input device header file for CDL modules.

Copyright (C) 2016-2017, Gavin J Stark. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Header file for the types and CDL modules for input devices

Copyright (C) 2016-2018, Gavin J Stark. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Header file for the types and CDL modules for input devices

Data Structures

struct  t_ps2_pins
 
struct  t_ps2_rx_data
 
struct  t_ps2_key_state
 

Data Structure Documentation

struct t_ps2_pins
Data Fields
bit clk
bit data
struct t_ps2_rx_data
Data Fields
bit[8] data
bit parity_error
bit protocol_error
bit timeout
bit valid
struct t_ps2_key_state
Data Fields
bit extended
bit[8] key_number
bit release
bit valid

Modules

module ps2_host ( clock  clk,
input bit  reset_n,
input t_ps2_pins  ps2_in,
output t_ps2_pins  ps2_out,
output t_ps2_rx_data  ps2_rx_data,
input bit  divider[16] 
)
Parameters
[in]clkClock
[in]ps2_inPin values from the outside
[out]ps2_outPin values to drive - 1 means float high, 0 means pull low
module ps2_host_keyboard ( clock  clk,
input bit  reset_n,
input t_ps2_rx_data  ps2_rx_data,
output t_ps2_key_state  ps2_key 
)
Parameters
clkClock