数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

WI.232FHSS-25-R 数据表(PDF) 58 Page - Radiometrix Ltd

部件名 WI.232FHSS-25-R
功能描述  Document Created from Rev G Specification
PDF  67 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  RADIOMETRIX [Radiometrix Ltd]
网页  http://www.radiometrix.com
标志 RADIOMETRIX - Radiometrix Ltd

WI.232FHSS-25-R 数据表(HTML) 58 Page - Radiometrix Ltd

Back Button WI.232FHSS-25-R Datasheet HTML 54Page - Radiometrix Ltd WI.232FHSS-25-R Datasheet HTML 55Page - Radiometrix Ltd WI.232FHSS-25-R Datasheet HTML 56Page - Radiometrix Ltd WI.232FHSS-25-R Datasheet HTML 57Page - Radiometrix Ltd WI.232FHSS-25-R Datasheet HTML 58Page - Radiometrix Ltd WI.232FHSS-25-R Datasheet HTML 59Page - Radiometrix Ltd WI.232FHSS-25-R Datasheet HTML 60Page - Radiometrix Ltd WI.232FHSS-25-R Datasheet HTML 61Page - Radiometrix Ltd WI.232FHSS-25-R Datasheet HTML 62Page - Radiometrix Ltd Next Button
Zoom Inzoom in Zoom Outzoom out
 58 / 67 page
background image
WI.232FHSS-25-R/ WI.232FHSS-250-R DATASHEET
57
Revision 1.1.0
default configuration when power is applied to the module. During normal operation, the volatile registers
are used to control the module.
Placing the module in the command mode allows these registers to be programmed. Byte values in
excess of 127 (0x80 or greater) must be changed into a two-byte escape sequence of the format: 0xFE,
[value - 128]. For example, the value 0x83 becomes 0xFE, 0x03. The following function will prefix a 0xFF
header and size specifier to a command sequence and create escape sequences as needed. It is
assumed that *src is populated with either the register number to read (one byte, pass 1 into src_len) or
the register number and value to write (two bytes, pass 2 into src_len). It is also assumed that the *dest
buffer has enough space for the two header characters plus, the encoded command, and the null
terminator.
int EscapeString(char *src, char src_len, char *dest)
{
// The following function copies and encodes the first
// src_len characters from *src into *dest.
This
// encoding is necessary for Wi.232 command formats.
// The resulting string is null terminated.
The size
// of this string is the function return value.
// ---------------------------------------------------
char src_idx, dest_idx;
// Save space for the command header and size bytes
// ------------------------------------------------
dest_idx = 2;
// Loop through source string and copy/encode
// ------------------------------------------
for (src_idx = 0; src_idx < src_len; src_idx++)
{
if (src[src_idx] > 127)
{
dest[dest_idx++] = 0xFE;
}/*if*/
dest[dest_idx++] = (src[src_idx] & 0x7F);
}/*for*/
// Add null terminator
// -------------------
dest[dest_idx] = 0;
// Add command header
// ------------------
dest[0] = 0xFF;
dest[1] = dest_idx – 2;
// Return escape string size
// -------------------------
return dest_idx;
}
Figure 16: Command Conversion Code
5.4. Writing to Registers
Writing to a volatile register is nearly instantaneous. Writing to a non-volatile register, however, typically
takes 16 ms. Because the packet size can vary based on the need for encoding, there are two possible
packet structures. The following tables show the byte sequences for writing a register in each case.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com