assoc.h

来自「开放源码的嵌入式开发环境」· C头文件 代码 · 共 47 行

H
47
字号
/** * @file rtems/assoc.h *//* * *  Rtems associativity routines.  Mainly used to convert a value from *  one space to another (eg: our errno's to host errno's and v.v) * * *  $Id: assoc.h,v 1.7 2005/01/28 08:04:27 ralf Exp $ */#ifndef _RTEMS_RTEMS_ASSOC_H#define _RTEMS_RTEMS_ASSOC_Htypedef struct {    const char   *name;    uint32_t     local_value;    uint32_t     remote_value;} rtems_assoc_t;/* * Flag/marker for optional default value in each table */#define RTEMS_ASSOC_DEFAULT_NAME "(default)"const rtems_assoc_t *rtems_assoc_ptr_by_name(const rtems_assoc_t *, const char *);const rtems_assoc_t *rtems_assoc_ptr_by_value(const rtems_assoc_t *, uint32_t  );const rtems_assoc_t *rtems_assoc_ptr_by_remote(const rtems_assoc_t *, uint32_t  );uint32_t     rtems_assoc_remote_by_local(const rtems_assoc_t *, uint32_t  );uint32_t     rtems_assoc_local_by_remote(const rtems_assoc_t *, uint32_t  );uint32_t     rtems_assoc_remote_by_name(const rtems_assoc_t *, const char *);uint32_t     rtems_assoc_local_by_name(const rtems_assoc_t *, const char *);const char  *rtems_assoc_name_by_local(const rtems_assoc_t *, uint32_t  );const char  *rtems_assoc_name_by_remote(const rtems_assoc_t *, uint32_t  );uint32_t     rtems_assoc_remote_by_local_bitfield(const rtems_assoc_t *, uint32_t  );char  *rtems_assoc_name_by_local_bitfield(const rtems_assoc_t *, uint32_t  , char *);char  *rtems_assoc_name_by_remote_bitfield(const rtems_assoc_t *, uint32_t  , char *);uint32_t     rtems_assoc_local_by_remote_bitfield(const rtems_assoc_t *, uint32_t  );#endif /* ! _INCLUDE_ASSOC_H */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?