📄 srvmat.h
字号:
/************************************************** * * srvmat.h * * CVS ID: $Id: srvmat.h,v 1.8 2006/11/10 16:31:56 dellorto Exp $ * Author: Fabio Dell'Orto [FD] - STM * Date: $Date: 2006/11/10 16:31:56 $ * Revision: $Revision: 1.8 $ * * Description: * * *************************************************** * * COPYRIGHT (C) ST Microelectronics 2005 * All Rights Reserved * *************************************************** * * STM CVS Log: * * $Log: srvmat.h,v $ * Revision 1.8 2006/11/10 16:31:56 dellorto * sector_2_trk() function moved to srvctr.c/h * * Revision 1.7 2006/09/18 09:55:25 belardi * Corrected CVS keyword usage * * Revision 1.6 2006/09/18 09:25:37 belardi * Added Log CVS keyword into file header * * ***************************************************/#ifndef __SRVMAT_H#define __SRVMAT_H#define MIN 0x00#define SEC 0x01#define FRAME 0x02typedef enum{ HEX = 0x00, BCD = 0x01,} tHexBcdSelector;uint16 absi(sint16 val);sint16 sign(sint16 val);sint16 aux_mult(sint16 factor1, uint16 factor2);sint16 aux_divide(sint16 dividend, uint16 divisor);uint16 square_root(uint32 n);uint8 bcd_2_hex(uint8 bcd_val);uint8 hex_2_bcd(uint8 hex_val);uint32 msf_2_sid(uint8 min, uint8 sec, uint8 frame, tHexBcdSelector format);void sid_2_msf(uint8 *msf, uint32 sid);#endif /* __SRVMAT_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -