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.
irobotError.h File Reference
iRobot error handling and codes. More...
Go to the source code of this file.
Functions | |
| int32_t | irobot_StatusMerge (int32_t *const status, const int32_t newStatus) |
| Conditionally sets the status to a new value. | |
Detailed Description
iRobot error handling and codes.
- Date:
- 2013-12-09 Copyright (C) 2013, Jeff C. Jensen, Edward A. Lee, and Sanjit A. Seshia. This software accompanies An Introductory Lab in Embedded and Cyber-Physical Systems and is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. See http://leeseshia.org/lab.
Definition in file irobotError.h.
Function Documentation
| int32_t irobot_StatusMerge | ( | int32_t *const | status, |
| const int32_t | newStatus | ||
| ) |
Conditionally sets the status to a new value.
The previous status is preserved unless the new status is more of an error, which means that warnings and errors overwrite successes, and errors overwrite warnings. New errors do not overwrite older errors, and new warnings do not overwrite older warnings.
- Parameters:
-
status status to conditionally set newStatus new status value that may be set
- Returns:
- the resulting status
Definition at line 3 of file irobotError.cpp.
Generated on Wed Jul 13 2022 12:36:28 by
1.7.2