|
Open Model Railroad Network (OpenMRN)
|
Go to the source code of this file.
Functions | |
| void | SlCheckResult (int result, int expected=0) |
| Tests that a SimpleLink request has succeeded. | |
| void | SlCheckError (int result) |
| Tests that a SimpleLink request has succeeded (return >= 0). | |
| int | SlDeleteFile (const void *filename) |
| Deletes a file from sflash. | |
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Common helper routines for the TI SimpleLink API.
Definition in file CC32xxHelper.hxx.
| void SlCheckError | ( | int | result | ) |
Tests that a SimpleLink request has succeeded (return >= 0).
Performs internal debugging when it failed and crashes.
| result | is the returned value from the simplelink driver |
Definition at line 51 of file CC32xxHelper.cxx.
| void SlCheckResult | ( | int | result, |
| int | expected = 0 |
||
| ) |
Tests that a SimpleLink request has succeeded.
Performs internal debugging when it failed and crashes.
| result | is the returned value from the simplelink driver |
| expected | is the expected return code. |
Definition at line 45 of file CC32xxHelper.cxx.
| int SlDeleteFile | ( | const void * | filename | ) |
Deletes a file from sflash.
This routine works around the error SL_FS_FILE_HAS_NOT_BEEN_CLOSE_CORRECTLY which prevents deleting a file.
| filename | serial-flash file name to delete. |
Definition at line 57 of file CC32xxHelper.cxx.