M7 Reference Counter Function Library
12.3 M7CntEnableOut
Function
Syntax
Description
Return Value
12
See Also
Example
12-4
www.gkbpx.com
Enable outputs
#include <m7cnt.h>
M7ERR_CODE M7CntEnableOut (
M7CNT_LOGCHANNEL LogChannel,
BOOL SelOut0,
BOOL SelOut1);
Parameter
LogChannel
SelOut0
SelOut1
The two outputs of the counter channel in each case can be enabled with this
function. The two bits SelOut0 and SelOut1 (down) determine which of the
two outputs is to be enabled. To enable an output, the desired bit must be set
(= TRUE) when the function is called. Both outputs can also be enabled with
just one function call. If the bit of an output = FALSE, the status of the out-
put is not changed: an enabled output remains enabled and a disabled output
remains disabled.
Default: both outputs are disabled
0
The function has been executed successfully
0
An error has occurred
Error Code
M7CNTE_NO_LOGCHANNEL
Function: M7CntInit, M7CntDisableOut
#include "M7CNT.H"
M7CNT_LOGCHANNEL
if ((Err = M7CntEnableOut (Ch5, TRUE, TRUE)) != M7CNT_DONE)
{...error handling...}
Meaning
Logical channel number, detected by
M7CntInit
Selection bit for output 0
Selection bit for output 1
Meaning
The channel specified when calling (LogChannel
parameter) is not valid.
Ch5;
FM 450-1 Counter Function Module
C79000-G7076-C450-01
该文档是极速PDF编辑器生成,
如果想去掉该提示,请访问并下载:
http://www.jisupdfeditor.com/