完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
扫一扫,分享给好友
|
|
相关推荐
4个回答
|
|
在CC3200的simplelink库提供的函数中参考如下代码读取本机的MAC地址:
sl_NetCfgGet(SL_MAC_ADDRESS_GET,NULL,&macAddressLen,(unsigned char *)macAddressVal); |
|
|
|
从GitHub上找到一个帖子,参考如下:
CC3200 WiFi: How to Get the MAC Address |
|
|
|
Setting MAC address to the Device.
The new MAC address will override the default MAC address and it be saved in the FileSystem. Requires restarting the device for updating this setting. _u8 MAC_Address[6]; MAC_Address[0] = 0x8; MAC_Address[1] = 0x0; MAC_Address[2] = 0x28; MAC_Address[3] = 0x22; MAC_Address[4] = 0x69; MAC_Address[5] = 0x31; sl_NetCfgSet(SL_MAC_ADDRESS_SET,1,SL_MAC_ADDR_LEN,(_u8 *)newMacAddress); sl_Stop(0); sl_Start(NULL,NULL,NULL); 提供德州仪器蓝牙和射频cc2540,cc2541,cc26系列,cc13系列脱机烧录工具。 |
|
|
|
60user20 发表于 2018-5-14 03:29 #define SL_MAC_ADDR_LEN (6) #define SL_IPV4_VAL(add_3,add_2,add_1,add_0) ((((_u32)add_3 << 24) & 0xFF000000) | (((_u32)add_2 << 16) & 0xFF0000) | (((_u32)add_1 << 8) & 0xFF00) ((_u32)add_0 & 0xFF) ) #define SL_IPV4_BYTE(val,index) ( (val >> (index*8)) & 0xFF ) 提供德州仪器蓝牙和射频cc2540,cc2541,cc26系列,cc13系列脱机烧录工具。 |
|
|
|
只有小组成员才能发言,加入小组>>
820 浏览 1 评论
1070 浏览 0 评论
617 浏览 1 评论
466 浏览 1 评论
660 浏览 2 评论
AT32F407在USART2 DMA发送数据时,接包接到了要发送的数据,程序还是处于等待传输完成的标识判断中,为什么?
263浏览 29评论
1224浏览 23评论
请问下tpa3220实际测试引脚功能和官方资料不符,哪位大佬可以帮忙解答下
355浏览 20评论
请教下关于TAS5825PEVM评估模块原理图中不太明白的地方,寻求答疑
333浏览 14评论
两个TMP117传感器一个可以正常读取温度值,一个读取的值一直是0,为什么?
197浏览 13评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-3-5 06:08 , Processed in 1.301799 second(s), Total 82, Slave 66 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191