参数资料
型号: 151-0153
厂商: Rabbit Semiconductor
文件页数: 75/162页
文件大小: 0K
描述: ASSEMBLY - RABBITFLEX CABLES
标准包装: 1
系列: RabbitFLEX™
附件类型: 缆线组件
适用于相关产品: BL300F
If you would like to change your pin software names after you have designed your board, then it is possi-
ble to modify your design-specific generated library. You must search the library for all references to the
name that you wish to change. Note, however, that if you do modify your design-specific library, you will
be responsible for maintaining that library. The version in your RabbitFLEX account will no longer be
synchronized with your modified version. A better way of renaming may be to use a macro define, like
this:
#define flex_greenled flex_c1p3
6.3.3 Pin Groups
One useful feature in the digital input and output software support is the concept of pin groups. A pin
group can be used to read a number of inputs or set a number of outputs with one function call.
First, the pin group must be defined. A pin group is an array of Flex_IOPin pointers
( Flex_IOPin * ). The group must be terminated by an element called FLEX_GROUP_END .
For example:
static const Flex_IOPin *leds[] = {
&flex_c2p1,
&flex_c2p2,
&flex_c2p3,
FLEX_GROUP_END
};
This example creates a pin group of 3 digital outputs. To set these outputs, we could do the following:
flexDigOutGroup16(leds, 0x05);
The first parameter is the pin group, and the second parameter contains the values with which to set the
digital outputs. The least significant bit is written to the first pin in the pin group; the next least significant
bit is written to the second pin in the pin group; etc. The following diagram demonstrates this process:
0 0 0 0 0 0 0 0 0
0 0 0 0 1 0 1
&flex_c2p1
&flex_c2p2
&flex_c2p3
FLEX_GROUP_END
A digital input group works similarly:
flexDigInGroup16(switches, &result);
In this case, the state of the first pin in the pin group is placed in the least significant bit of result; the state
of the second pin is placed in the next least significant bit of the result; etc.
RabbitFLEX User’s Manual
69
相关PDF资料
PDF描述
1515738-1 INSERT ASSEMBLY 1 CHANNEL
1515739-1 INSERT ASSEMBLY, 2 X 1310
1515740-1 INSERT ASSEMBLY 4 CHANNEL
1515747-1 INSERT ASSEMBLY 4 CHANNEL
1515867-1 PROTECTIVE CAP,PLUG CONN.
相关代理商/技术参数
参数描述
151-01530 功能描述:RATCHET P CLAMP SIZE A SOFT INSE 制造商:hellermanntyton 系列:- 零件状态:新产品 配件类型:插件 配套使用产品/相关产品:Ratchet P 夹,6.2mm-13.7mm 捆扎直径 材料:热塑性塑胶(TPE) 特性:- 标准包装:100
151-01531 功能描述:RATCHET P CLAMP SIZE B SOFT INSE 制造商:hellermanntyton 系列:- 零件状态:新产品 配件类型:插件 配套使用产品/相关产品:Ratchet P 夹,13.2mm-19.5mm 捆扎直径 材料:热塑性塑胶(TPE) 特性:- 标准包装:100
151-01532 功能描述:RATCHET P CLAMP SIZE C SOFT INSE 制造商:hellermanntyton 系列:- 零件状态:新产品 配件类型:插件 配套使用产品/相关产品:Ratchet P 夹,19.2mm-36mm 捆扎直径 材料:热塑性塑胶(TPE) 特性:- 标准包装:100
151-01533 功能描述:RATCHET P CLAMP SIZE D SOFT INSE 制造商:hellermanntyton 系列:- 零件状态:新产品 配件类型:插件 配套使用产品/相关产品:Ratchet P 夹,35.1mm-51mm 捆扎直径 材料:热塑性塑胶(TPE) 特性:- 标准包装:100
151-01554 功能描述:WIDE STRAP ADHESIVE MOUNT BLK 制造商:hellermanntyton 系列:* 零件状态:在售 标准包装:3,000