MG32F10x Standard Peripherals Firmware Library
宏定义 | 函数
mg32f10x_sfm.h 文件参考

This file contains all the functions prototypes for the SFM firmware library. 更多...

#include "mg32f10x.h"

浏览源代码.

宏定义

#define SFM_USBP_DETECT_SE0   0x0100
 
#define SFM_USBP_DETECT_JSTAT   0x0200
 
#define SFM_USBP_DETECT_KSTAT   0x0400
 
#define SFM_USBP_DETECT_SE1   0x0800
 
#define SFM_USBP_FLAG_SE0   0x01
 
#define SFM_USBP_FLAG_JSTAT   0x02
 
#define SFM_USBP_FLAG_KSTAT   0x04
 
#define SFM_USBP_FLAG_SE1   0x08
 

函数

void CRC_SFM_DeInit (void)
 Deinitializes the CRC and SFM peripheral registers to their default reset values. 更多...
 
uint32_t SFM_ComputeBit1Number (uint32_t Data)
 Returns the number of bit 1 in a word(32-bit). 更多...
 
void SFM_ExpandBits (uint32_t Data, uint32_t *pBuffer, uint32_t ExpandRate)
 Expand a word(32-bit) with specified rate. 更多...
 
void SFM_USBPort_DetectConfig (uint32_t SFM_USBP_DETECT, FunctionalState NewState)
 Configure the USB Port state detect function. 更多...
 
FlagStatus SFM_USBPort_GetFlagStatus (uint32_t SFM_USBP_FLAG)
 Checks whether the specified USB Port flag is set or not. 更多...
 
void SFM_USBPort_ClearFlag (uint32_t SFM_USBP_FLAG)
 Clears the USB Port's pending flags. 更多...
 

详细描述

This file contains all the functions prototypes for the SFM firmware library.

作者
megawin Application Team
版本
V0.1.10
日期
05-January-2023