📄 hdb3.h
字号:
/* ANSI C Source Code
* HDB3.h
* Leon 5.11.2008
*/
#ifndef _HDB_
#define _HDB_
struct Code_control
{
int z_num; //1.连0的个数
int pole; //2.有效极性,非V,B,但包括变B后,有效极性从V开始的情况
int V; //3.V的极性,因为V也要交替
int V_num; //4.两个V之间的 +-1个数,以便做奇偶判断
int V_frist_z_define; //5-8为变B服务 是否是V小段中的第一个,即V的第一个零
int uni_pole; //6.前面一个非零符号,包括+-1和+-V,作为变B的依据,B与前一个非零元素相反
int frist_z_pos; //7.变B的位置
int frist_z_pole; //8.变B的值
};
struct Decode_control
{
int pole; //1.前一个非零极性.
};
void Code_HDB(int *,int *,struct Code_control *);
void Decode_HDB(int *,int *,struct Decode_control *);
void Print(char s[20], int *);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -