Convert a 6 characters string to un unsigned long, and vice versa, to be used as an identifier for RTAI services symmetrically available in user and kernel space, e.g. shared memory and LXRT and LXRT-INFORMED.
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, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Definition in file rtai_nam2num.h.
Include dependency graph for rtai_nam2num.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Defines | |
#define | NAM2NUM_PROTO RTAI_PROTO |
Functions | |
NAM2NUM_PROTO (unsigned long, nam2num,(const char *name)) | |
Convert a 6 characters string to an unsigned long. | |
NAM2NUM_PROTO (void, num2nam,(unsigned long num, char *name)) | |
Convert an unsigned long to a 6 characters string. |
#define NAM2NUM_PROTO RTAI_PROTO |
Definition at line 43 of file rtai_nam2num.h.
NAM2NUM_PROTO | ( | void | , | |
num2nam | , | |||
(unsigned long num, char *name) | ||||
) |
Convert an unsigned long to a 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. |
Definition at line 97 of file rtai_nam2num.h.
NAM2NUM_PROTO | ( | unsigned | long, | |
nam2num | , | |||
(const char *name) | ||||
) |
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. |
Definition at line 63 of file rtai_nam2num.h.