### 1. chip
#### 1.1 chip info
chip name : STM32F407ZGT6.
extern oscillator : 8MHz.
uart pin: TX/RX PA9/PA10.
iic pin: SCL/SDA PB8/PB9.
### 2. shell
#### 2.1 shell parameter
baud rate: 115200
data bits : 8
stop bits: 1
parity: none
flow control: none
### 3. hmc5883l
#### 3.1 command Instruction
hmc5883l is a basic command which can test all hmc5883l driver function:
-i show hmc5883l chip and driver information.
-h show hmc5883l help.
-p show hmc5883l pin connections of the current board.
-t (reg | read <times>)
-t reg run hmc5883l register test.
-t read run hmc5883l read test. times means test times.
-c (read <times>| shot <times>)
-c read <times> run hmc5883l read function. times means read times.
-c shot <times> run hmc5883l shot function. times means read times.
#### 3.2 command example
```shell
hmc5883l -i
hmc5883l: chip is Honeywell HMC5883L.
hmc5883l: manufacturer is Honeywell.
hmc5883l: interface is IIC.
hmc5883l: driver version is 2.0.
hmc5883l: min supply voltage is 2.2V.
hmc5883l: max supply voltage is 3.6V.
hmc5883l: max current is 0.10mA.
hmc5883l: max temperature is 85.0C.
hmc5883l: min temperature is -30.0C.
```
```shell
hmc5883l -p
hmc5883l: SCL connected to GPIOB PIN8.
hmc5883l: SDA connected to GPIOB PIN9.
```
```shell
hmc5883l -t reg
hmc5883l: chip is Honeywell HMC5883L.
hmc5883l: manufacturer is Honeywell.
hmc5883l: interface is IIC.
hmc5883l: driver version is 2.0.
hmc5883l: min supply voltage is 2.2V.
hmc5883l: max supply voltage is 3.6V.
hmc5883l: max current is 0.10mA.
hmc5883l: max temperature is 85.0C.
hmc5883l: min temperature is -30.0C.
hmc5883l: start register test.
hmc5883l: hmc5883l_set_average_sample/hmc5883l_get_average_sample test.
hmc5883l: set average sample 1.
hmc5883l: check average sample ok.
hmc5883l: set average sample 2.
hmc5883l: check average sample ok.
hmc5883l: set average sample 4.
hmc5883l: check average sample ok.
hmc5883l: set average sample 8.
hmc5883l: check average sample ok.
hmc5883l: hmc5883l_set_data_output_rate/hmc5883l_get_data_output_rate test.
hmc5883l: set data output rate 0.75.
hmc5883l: check data output rate ok.
hmc5883l: set data output rate 1.5.
hmc5883l: check data output rate ok.
hmc5883l: set data output rate 3.
hmc5883l: check data output rate ok.
hmc5883l: set data output rate 7.5.
hmc5883l: check data output rate ok.
hmc5883l: set data output rate 15.
hmc5883l: check data output rate ok.
hmc5883l: set data output rate 30.
hmc5883l: check data output rate ok.
hmc5883l: set data output rate 75.
hmc5883l: check data output rate ok.
hmc5883l: hmc5883l_set_mode/hmc5883l_get_mode test.
hmc5883l: set mode normal.
hmc5883l: check mode ok.
hmc5883l: set mode positive bias.
hmc5883l: check mode ok.
hmc5883l: set mode negative bias.
hmc5883l: check mode ok.
hmc5883l: hmc5883l_set_gain/hmc5883l_get_gain test.
hmc5883l: set gain 1370.
hmc5883l: check gain ok.
hmc5883l: set gain 1090.
hmc5883l: check gain ok.
hmc5883l: set gain 820.
hmc5883l: check gain ok.
hmc5883l: set gain 660.
hmc5883l: check gain ok.
hmc5883l: set gain 440.
hmc5883l: check gain ok.
hmc5883l: set gain 390.
hmc5883l: check gain ok.
hmc5883l: set gain 330.
hmc5883l: check gain ok.
hmc5883l: set gain 230.
hmc5883l: check gain ok.
hmc5883l: hmc5883l_enable_high_speed_iic.
hmc5883l: check enable high speed iic ok.
hmc5883l: hmc5883l_disable_high_speed_iic.
hmc5883l: check disable high speed iic ok.
hmc5883l: finished register test.
```
```shell
hmc5883l -t read 3
hmc5883l: chip is Honeywell HMC5883L.
hmc5883l: manufacturer is Honeywell.
hmc5883l: interface is IIC.
hmc5883l: driver version is 2.0.
hmc5883l: min supply voltage is 2.2V.
hmc5883l: max supply voltage is 3.6V.
hmc5883l: max current is 0.10mA.
hmc5883l: max temperature is 85.0C.
hmc5883l: min temperature is -30.0C.
hmc5883l: start read test.
hmc5883l: single read test.
hmc5883l: single read x -2.4.
hmc5883l: single read y 251.3.
hmc5883l: single read z 245.2.
hmc5883l: single read x -2.4.
hmc5883l: single read y 251.3.
hmc5883l: single read z 244.0.
hmc5883l: single read x -3.7.
hmc5883l: single read y 251.3.
hmc5883l: single read z 245.2.
hmc5883l: continuous read test.
hmc5883l: continuous read x -1.2.
hmc5883l: continuous read y 247.7.
hmc5883l: continuous read z 244.0.
hmc5883l: continuous read x -1.2.
hmc5883l: continuous read y 248.9.
hmc5883l: continuous read z 244.0.
hmc5883l: continuous read x -3.7.
hmc5883l: continuous read y 250.1.
hmc5883l: continuous read z 245.2.
hmc5883l: gain test.
hmc5883l: set gain 1370.
hmc5883l: single read x -2.2.
hmc5883l: single read y 149.7.
hmc5883l: single read z 147.5.
hmc5883l: single read x -0.7.
hmc5883l: single read y 148.2.
hmc5883l: single read z 145.3.
hmc5883l: single read x -0.7.
hmc5883l: single read y 240.2.
hmc5883l: single read z 236.5.
hmc5883l: set gain 1090.
hmc5883l: single read x -1.8.
hmc5883l: single read y 303.6.
hmc5883l: single read z 299.0.
hmc5883l: single read x -1.8.
hmc5883l: single read y 302.7.
hmc5883l: single read z 298.1.
hmc5883l: single read x -2.8.
hmc5883l: single read y 242.9.
hmc5883l: single read z 238.3.
hmc5883l: set gain 820.
hmc5883l: single read x -3.7.
hmc5883l: single read y 320.9.
hmc5883l: single read z 314.8.
hmc5883l: single read x -3.7.
hmc5883l: single read y 318.4.
hmc5883l: single read z 313.5.
hmc5883l: single read x -2.4.
hmc5883l: single read y 248.9.
hmc5883l: single read z 245.2.
hmc5883l: set gain 660.
hmc5883l: single read x -4.6.
hmc5883l: single read y 308.6.
hmc5883l: single read z 304.0.
hmc5883l: single read x -1.5.
hmc5883l: single read y 310.1.
hmc5883l: single read z 305.5.
hmc5883l: single read x -1.5.
hmc5883l: single read y 243.2.
hmc5883l: single read z 238.6.
hmc5883l: set gain 440.
hmc5883l: single read x -2.3.
hmc5883l: single read y 360.9.
hmc5883l: single read z 356.4.
hmc5883l: single read x 0.0.
hmc5883l: single read y 360.9.
hmc5883l: single read z 358.7.
hmc5883l: single read x -2.3.
hmc5883l: single read y 242.9.
hmc5883l: single read z 240.6.
hmc5883l: set gain 390.
hmc5883l: single read x -2.6.
hmc5883l: single read y 273.9.
hmc5883l: single read z 273.9.
hmc5883l: single read x -2.6.
hmc5883l: single read y 276.5.
hmc5883l: single read z 273.9.
hmc5883l: single read x -5.1.
hmc5883l: single read y 248.3.
hmc5883l: single read z 245.8.
hmc5883l: set gain 330.
hmc5883l: single read x -3.0.
hmc5883l: single read y 293.9.
hmc5883l: single read z 290.9.
hmc5883l: single read x -3.0.
hmc5883l: single read y 293.9.
hmc5883l: single read z 287.9.
hmc5883l: single read x 0.0.
hmc5883l: single read y 239.4.
hmc5883l: single read z 239.4.
hmc5883l: set gain 230.
hmc5883l: single read x 1.0.
hmc5883l: single read y 343.6.
hmc5883l: single read z 339.3.
hmc5883l: single read x 1.0.
hmc5883l: single read y 339.3.
hmc5883l: single read z 343.6.
hmc5883l: single read x 1.0.
hmc5883l: single read y 239.2.
hmc5883l: single read z 234.9.
hmc5883l: finished read test.
```
```shell
hmc5883l -c read 3
hmc5883l: 1/3.
hmc5883l: x is 2.440.
hmc5883l: y is 237.900.
hmc5883l: z is 250.100.
hmc5883l: 2/3.
hmc5883l: x is 3.660.
hmc5883l: y is 234.240.
hmc5883l: z is 250.100.
hmc5883l: 3/3.
hmc5883l: x is 3.660.
hmc5883l: y is 234.240.
hmc5883l: z is 248.880.
```
```shell
hmc5883l -c shot 3
hmc5883l: 1/3.
hmc5883l: x is 3.660.
hmc5883l: y is 239.120.
hmc5883l: z is 254.980.
hmc5883l: 2/3.
hmc5883l: x is 3.660.
hmc5883l: y is 239.120.
hmc5883l: z is 253.760.
hmc5883l: 3/3.
hmc5883l: x is 2.440.
hmc5883l: y is 240.340.
hmc5883l: z is 256.200.
```
```shell
hmc5883l -h
hmc5883l -i
show hmc5883l chip and driver information.
hmc5883l -h
show hmc5883l help.
hmc5883l -p
show hmc5883l pin connections of the current board.
hmc5883l -t reg
run hmc5883l register test.
hmc5883l -t read
run hmc5883l read test.times means test times.
hmc5883l -c read <times>
没有合适的资源?快使用搜索试试~ 我知道了~
hmc5883l全功能驱动C_下载
共460个文件
h:137个
c:111个
html:84个
需积分: 0 2 下载量 111 浏览量
2022-08-31
10:33:09
上传
评论
收藏 3.27MB ZIP 举报
温馨提示
(更多详情、使用方法,请下载后细读README.md文件) English 繁體中文 日本語 Deutsch \nLibDriver HMC5883L\n霍尼韦尔 HMC5883L 是一款表面贴装多芯片模块,专为低场磁场感应而设计,具有数字接口,适用于低成本罗盘和磁力测量等应用。HMC5883L 包括我们最先进的高分辨率 HMC118X 系列磁阻传感器和一个 ASIC,其中包含放大、自动消磁带驱动器、偏移消除和一个 12 位 ADC,可实现 1° 至 2° 罗盘航向准确性。I2C 串行总线允许简单的接口。HMC5883L 是一款 3.0x3.0x0.9mm 表面贴装 16 引脚无引线芯片载体 (LCC)。HMC5883L 的应用包括移动电话、上网本、消费电子产品、自动导航系统和个人导航设备。\nLibDriver HMC5883L是LibDriver推出的HMC5883L全功能驱动,提供连续模式磁场强度读取、单模式磁场读取等功能。LibDriver 符合 MISRA。\n目录\n操作说明\n安装\n用法\n基本示例\n示例镜头\n文档\n贡献\n执照\n
资源推荐
资源详情
资源评论
收起资源包目录
hmc5883l全功能驱动C_下载 (460个子文件)
obj_delete.bat 326B
stm32f4xx_hal_i2c.c 223KB
stm32f4xx_hal_fmpi2c.c 222KB
stm32f4xx_hal_tim.c 206KB
stm32f4xx_hal_cryp.c 204KB
stm32f4xx_hal_dfsdm.c 150KB
stm32f4xx_hal_rcc_ex.c 149KB
stm32f4xx_hal_spi.c 116KB
stm32f4xx_hal_hash.c 111KB
stm32f4xx_hal_uart.c 105KB
stm32f4xx_hal_sd.c 100KB
stm32f4xx_hal_usart.c 94KB
stm32f4xx_hal_smbus.c 94KB
stm32f4xx_hal_qspi.c 91KB
stm32f4xx_hal_irda.c 91KB
stm32f4xx_hal_mmc.c 90KB
stm32f4xx_hal_dsi.c 85KB
stm32f4xx_hal_smartcard.c 83KB
stm32f4xx_hal_can.c 79KB
stm32f4xx_hal_sai.c 79KB
stm32f4xx_hal_eth.c 79KB
stm32f4xx_hal_adc.c 75KB
stm32f4xx_hal_ltdc.c 69KB
stm32f4xx_hal_nand.c 66KB
stm32f4xx_hal_dma2d.c 65KB
stm32f4xx_hal_lptim.c 65KB
stm32f4xx_hal_tim_ex.c 64KB
stm32f4xx_hal_i2s.c 63KB
stm32f4xx_hal_rtc.c 61KB
stm32f4xx_hal_pcd.c 58KB
stm32f4xx_ll_fmc.c 58KB
driver_hmc5883l.c 57KB
stm32f4xx_ll_usb.c 56KB
stm32f4xx_hal_rtc_ex.c 54KB
stm32f4xx_hal_can.c 52KB
stm32f4xx_hal_spdifrx.c 52KB
stm32f4xx_ll_rcc.c 50KB
stm32f4xx_hal_flash_ex.c 49KB
stm32f4xx_ll_sdmmc.c 47KB
stm32f4xx_hal_hcd.c 45KB
stm32f4xx_hal_dac.c 44KB
stm32f4xx_ll_tim.c 44KB
stm32f4xx_ll_adc.c 42KB
stm32f4xx_hal_hash_ex.c 41KB
stm32f4xx_hal_adc_ex.c 41KB
stm32f4xx_hal_rcc.c 40KB
stm32f4xx_hal_dma.c 39KB
stm32f4xx_hal_i2s_ex.c 37KB
stm32f4xx_hal_nor.c 37KB
stm32f4xx_ll_fsmc.c 36KB
stm32f4xx_hal_dcmi.c 36KB
stm32f4xx_hal_sdram.c 34KB
stm32f4xx_hal_cec.c 31KB
stm32f4xx_ll_utils.c 31KB
stm32f4xx_ll_rtc.c 31KB
stm32f4xx_hal_pccard.c 30KB
stm32f4xx_hal_sram.c 29KB
system_stm32f4xx.c 27KB
stm32f4xx_hal_rng.c 25KB
stm32f4xx_hal_flash.c 23KB
stm32f4xx_ll_spi.c 23KB
stm32f4xx_ll_dma2d.c 23KB
stm32f4xx_hal_pwr_ex.c 22KB
stm32f4xx_hal_cryp_ex.c 21KB
driver_hmc5883l_register_test.c 21KB
stm32f4xx_hal_pwr.c 19KB
stm32f4xx_hal_gpio.c 19KB
stm32f4xx_ll_usart.c 18KB
stm32f4xx_hal.c 18KB
stm32f4xx_hal_cortex.c 18KB
stm32f4xx_ll_dma.c 18KB
driver_hmc5883l_read_test.c 16KB
stm32f4xx_hal_dac_ex.c 15KB
stm32f4xx_hal_wwdg.c 14KB
iic.c 14KB
stm32f4xx_hal_exti.c 12KB
iic.c 11KB
stm32f4xx_hal_timebase_rtc_alarm_template.c 11KB
stm32f4xx_ll_gpio.c 11KB
stm32f4xx_hal_sai_ex.c 11KB
stm32f4xx_ll_dac.c 10KB
stm32f4xx_hal_pcd_ex.c 10KB
stm32f4xx_hal_timebase_rtc_wakeup_template.c 10KB
stm32f4xx_hal_dma_ex.c 10KB
main.c 10KB
stm32f4xx_hal_crc.c 10KB
main.c 9KB
stm32f4xx_ll_lptim.c 9KB
stm32f4xx_ll_i2c.c 8KB
stm32f4xx_hal_iwdg.c 8KB
stm32f4xx_hal_fmpi2c_ex.c 8KB
uart.c 8KB
stm32f4xx_ll_exti.c 7KB
stm32f4xx_hal_dcmi_ex.c 7KB
stm32f4xx_hal_flash_ramfunc.c 6KB
stm32f4xx_hal_ltdc_ex.c 6KB
shell.c 5KB
stm32f4xx_hal_i2c_ex.c 5KB
driver_hmc5883l_basic.c 5KB
stm32f4xx_hal_timebase_tim_template.c 5KB
共 460 条
- 1
- 2
- 3
- 4
- 5
资源评论
m0_57781768
- 粉丝: 9046
- 资源: 403
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功