Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: FPGA_bus.cpp
- Revision:
- 5:64c677e9995c
- Parent:
- 4:e5d36eee9245
- Child:
- 6:e68defb7b775
--- a/FPGA_bus.cpp Thu Apr 18 22:54:18 2019 +0000 +++ b/FPGA_bus.cpp Thu Apr 18 22:59:26 2019 +0000 @@ -229,4 +229,13 @@ uint32_t register_address = ((QE_BASE + (channel * NOS_QE_REGISTERS)) + QE_CONFIG); uint32_t register_data = QE_SPEED_CALC_ENABLE; do_transaction(WRITE_REGISTER_CMD, register_address, register_data, &data, &status); + global_FPGA_unit_error_flag = status; +} + +uint32_t FPGA_bus::read_speed_measure(uint32_t channel) +{ + uint32_t register_address = ((QE_BASE + (channel * NOS_QE_REGISTERS)) + QE_CONFIG); + do_transaction(READ_REGISTER_CMD, register_address, NULL, &data, &status); + global_FPGA_unit_error_flag = status; + return data; } \ No newline at end of file