RTX理解4

文献来源:http://wzhyblog.yo2.cn/articles/%E5%AE%9E%E6%97%B6%E7%B3%BB%E7%BB%9Frtx%E5%AE%98%E6%96%B9%E6%96%87%E6%A1%A3%E4%B8%AD%E6%96%87%E7%BF%BB%E8%AF%91_6.html

实时系统RTX官方文档中文翻译_6

本文档包括以下内容:

API函数调用
RTX和RTX API介绍

关于RTX编程接口

RTX为Win32环境提供了一个最重要的实时编程接口,并与Win32编程接口兼容。

RTX应用程序在Win32和RTSS两个环境中都可以使用实时扩展,程序也可以在实时环境中使用Win32支持的API。RTX应用程序编程接口由以下三个接口集组成:

  • 实时API(RTAPI)
  • Win32支持的API
  • C运行时库支持的API
  • C++库支持的API

实时API(RTAPI)概述

RTAPI分为两种:

  • 纯粹实时接口 - 全新的,由实时扩展提供。这些RTAPI函数没有对应的Win32函数,并且都以Rt开头。
  • 基于Win32的实时接口 - 由Win32函数扩展而来,并且和Win32平台的函数有点类似。但是以Rt开头,并且在功能上与Win32函数也不完全相同,例如, RtCreateMutex,它与Win32平台的 CreateMutex函数在功能上就不完全相同。

Win32支持的API概述

跟Win32函数功能完全一样,并被RTSS环境所支持。函数名没有以Rt开头,因为在两个环境中的功能和调用接口完全一样。一个例子是ResumeThread


Windows驱动IPC API(RTKAPI)概述

Windows驱动进程间通讯API(RTKAPI)函数用来从Windows内核设备驱动访问RTX IPC机制。这些RTKAPI调用类似于它们的RTAPI对应的函数调用。例如,RtkOpenSemaphore 类似于 RtOpenSemaphore

使用RTKAPI的方式与使用RTAPI的方式相同,但是是在Windows内核环境。所有的RTKAPI接口函数在最前面以Rtk开头。

RTKAPI还包括一个include文件(RtkApi.h) 和一个连接库 (rtx_rtk.lib)。

注意:RTK函数只能在一个Windows设备驱动的PASSIVE_LEVEL层来调用。

RtkCloseHandle

RtkCreateEvent

RtkCreateMutex

RtkCreateSemaphore

RtkWaitForSingleObject

RtkCreateSharedMemory

RtkOpenEvent

RtkOpenMutex

RtkOpenSemaphore

 

RtkOpenSharedMemory

RtkPulseEvent

RtkReleaseMutex

RtkReleaseSemaphore

 

RtkResetEvent

RtkRtssAttach

RtkRtssDetach

RtkSetEvent

 

C++标准模板库概述

RTSS环境支持一个MS标准C++库调用的扩展集。详情见:Alphabetical List

accumulate

adjacent_difference

adjacent_find

advance

back_insert_iterator

back_inserter

basic_string

binary_negate

binary_search

bind1st

binder2nd

bsappend

cerr

clog

copy

copy_backward

count

count_if

cout

divides

equal

equal_range

equal_to

filebuf

fill

fill_n

find

find_end

find_first_of

find_if

findfrstof

for_each

front_insert_iterator

front_inserter

fstream

generate

generate_n

greater

greater_equal

ifstream

includes

inner_product

inplace_merge

insert

insert_iterator

istream_iterator

istringstream

iter_swap

less

less_equal

lexicographical_compare

logical_and

logical_not

logical_or

lower_bound

make_heap

max

max_element

merge

min

min_element

minus

mismatch

modulus

multiplies

negate

next_permutation

not_equal_to

nth_element

ofstream

ostream

ostream_iterator

ostringstream

pair

partial_sort

partial_sort_copy

partial_sum

partition

plus

pointer_to_binary_function

pointer_to_unary_function

prev_permutation

priority_queue

ptr_fun

push_heap

random_shuffle

remove

remove_copy

remove_copy_if

remove_if

replace

replace_copy

replace_copy_if

replace_if

reverse

reverse_copy

rotate

rotate_copy

search

search_n

set_difference

set_intersection

set_symmetric_difference

set_union

setbase

setfill

setprecision

setw

size

sort

sort_heap

stable_partition

stable_sort

streq

strgrteq

strgrtthan

stringbuf

stringstream

strlesseq

strlessthan

strneq

strplus

swap

swap_ranges

transform

unique

unique_copy

upper_bound

wcerr

wclog

wistringstream

wostream

wostringstream

wstringstream

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值