RTAI API 5.1
|
Conversion between 6 characters strings and unsigned long identifiers. More...
Functions | |
if (num >=MAX_NAM2NUM) | |
Convert an unsigned long identifier back to its corresponding 6 characters string. More... | |
Variables | |
int | c |
Convert a 6 characters string to an unsigned long. More... | |
Conversion between 6 characters strings and unsigned long identifiers.
Convert a 6 characters string to un unsigned long, and vice versa, to be used as an dentifier for RTAI services, symmetrically available in user and kernel space, e.g. shared memory and LXRT and LXRT-INFORMED.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
if | ( | num >= | MAX_NAM2NUM | ) |
Convert an unsigned long identifier back to its corresponding 6 characters string.
num | is the unsigned long identifier whose alphanumeric name string has to be evaluated; |
name | is a pointer to a 6 characters buffer where the identifier will be returned. Recall to dimension it at least to 7. |
int c |
Convert a 6 characters string to an unsigned long.
Converts a 6 characters string name containing an alpha numeric identifier to its corresponding unsigned long identifier.
name | is the name to be converted. |
Allowed characters are: