- 博客(131)
- 资源 (24)
- 收藏
- 关注
原创 vs 2022 MFC 访问对话框控件3
控件和控件变量相关量// 把控件变量m_edit1 和IDC_EDIT1编辑框相关联,m_edit1 就是IDC_EDIT1DDX_Control(pDX, IDC_EDIT1, m_edit1);双击 Add5,更新代码如下:void CMFCApplication7Dlg::OnBnClickedButton5(){ // TODO: 在此添加控件通知处理程序代码 int num1, num2, num3; TCHAR ch1[12], ch2[12...
2022-03-29 18:11:15
1732
原创 vs 2022 MFC 编辑框关联 访问控件2
DDX_Text(pDX, IDC_EDIT1, a_num1); DDX_Text(pDX, IDC_EDIT2, a_num2);DX_Text函D数把 a_num1 变量 和 IDC_EDIT1 关联起来DX_Text函D数把 a_num2变量 和 IDC_EDIT2关联起来按下 Add4 现做 UpdateData(TRUE): 12 关联到a_num1, 34 关联到 a_num2然后做加法a_num3 =a_num1 +a...
2022-03-29 17:50:14
812
1
原创 vs 2022 MFC 对话框 计算器
使用三种方法 制作1GetDlgItem()->GetWindowText()GetDlgItem()->SetWindowText();双击第一个Add,更改代码如下:void CMFCApplication7Dlg::OnBnClickedButton1(){ // TODO: 在此添加控件通知处理程序代码 int num1, num2, num3; TCHAR ch1[12], ch2[12], ch3[12]; GetDlgItem(IDC_EDIT
2022-03-29 16:54:36
2380
原创 VS 2022 MFC 统计字符串对话框
操作完之后如下:双击“统计” 在void CMFCApplication6Dlg::OnBnClickedButton1Count() 函数中添加如下代码:void CMFCApplication6Dlg::OnBnClickedButton1Count(){ // TODO: 在此添加控件通知处理程序代码 CString strInput; GetDlgItemText(IDC_EDIT_INPUT, ...
2022-03-29 14:28:10
629
原创 std::wstring.assign
assign()C++ string 类的成员函数,用于赋值操作。函数原型:string &operator=(const string &s); //把字符串s赋给当前字符串string &assign(const char *s); //用c类型字符串s赋值string &assign(const char *s,int n); //用c字符串s开始的n个字符赋值string &assign(const string &am.
2022-03-20 22:50:50
825
原创 Android Studio Gradle: Please remove usages of `jcenter()` Maven repository from your build scripts
打开App/Gradle Scripts/build.gradle(Project:---) Change the 'jcenter()' on build script{} and in all project repositories. and Sync now.更改之前:buildscript { repositories { google() jcenter() } dependencies { classpa...
2021-06-06 11:16:47
7649
3
转载 Explain the principle and use of NAND Flash with examples (4)
Source: Editor: Jacquelyn Update Time :2019-02-1214. Block erasure operation, 0x60-0xD0Erase one block at a time. The addressA[28:18]of three cyclesis required to publishERASE SETUP(0x60)command first,then three address cycles,followed byERAS...
2021-03-24 15:32:36
158
转载 Explain the principle and use of NAND Flash with examples (3)
Source: Editor: Jacquelyn Update Time :2019-02-1112. Programming operationsPROGRAM PAGE 0x80-0x10:Micron NAND Flash only supports page programming.Within a block, the page must be programmedcontinuouslyfrom the lowest bit ofa block’s page to th...
2021-03-24 15:19:24
189
转载 Explain the principle and use of NAND Flash with examples (2)
Source: Editor: Jacquelyn Update Time :2019-02-095. Bus operationPower-on automatic reading: During power-up,the PRE is VCC and the 3V VCC device automatically transfers the first page to the data register without issuing a command or address latc..
2021-03-24 15:06:31
149
转载 Explain the principle and use of NAND Flash with examples (1)
Source: Editor: Jacquelyn Update Time :2019-02-09Guide: This article takes Micron MT29F2G08 as an example to introduce principle and useofNANDFlash. NAND's internal storage array is accessedon the basis ofpages.This article takes Micron MT29F2...
2021-03-24 14:53:46
138
原创 函数指针数组 和 函数指针数组的指针
函数指针数组char * (*pf)(char * p) 定义的是一个函数指针pf,既然pf 是一个指针,那就可以储存在一个数组里:char * (*pf[3]) (char * p); (*pf[3]) 是一个指针素组, (*pf[3]) (char * p)数组内有3 个指向函数的指针,char * (*pf[3]) (char * p) 函数指针指向函数返回的是 char* 类型。#include <stdio.h>#include <string.h...
2020-10-13 14:16:24
452
原创 KBOOT memory init
//! @brief Bootloader global context data.//!//! @ingroup contextbootloader_context_t g_bootloaderContext = {.memoryInterface = &g_memoryInterface, ...
2020-09-10 09:59:36
212
原创 K64 计算 UART波特率
bootloader_init get_active_peripheral scuart_full_init autobaud_init(self->instance);void autobaud_init(uint32_t instance){ s_transitionCount = 0; s_firstByteTotalTicks = 0; s_secondByteTotalTicks = 0; s_lastToggleT.
2020-09-10 09:54:59
671
原创 RT1020 时钟
1.clock 文件 函数分析/*!* @brief Set CCM MUX node to certain value. 为CCM 寄存器赋值** @param mux 指定设定设置的MUX 模块* @param value 用于为选设定的模块选择时钟编号.*/static inline void CLOCK_SetMux(clock_mux_t mux, uin...
2020-08-06 15:28:04
437
原创 FlexSPI 引脚配置
RT1020 FlexSPI 引脚配置/** IOMUXC - Register Layout Typedef */typedef struct { uint8_t RESERVED_0[20]; __IO uint32_t SW_MUX_CTL_PAD[93];/**< SW_MUX_CTL_PAD_GPIO_EMC_00 SW MUX Control Register..SW_MUX_CTL_PAD_GPIO_SD_B1_11 SW MUX Control Regist...
2020-07-31 19:09:18
371
原创 Android Kotlin 接口函数
1 调用接口中的函数//Person.ktpackage com.example.xhelloimport android.app.Personopen class Person (val name: String, val age: Int){}首先创建一个Study 接口,并在其中定义几个学习行为. 右击com.example.xhello包->NEW->kotlin File/Class 在弹出对话框中输入"Study", 创建 类型选择"Interface"//S
2020-06-22 23:05:15
450
原创 Android Kotlin继承
1 子类采用主构造函数//Person.ktpackage com.example.xhelloimport android.app.Personopen class Person { var name = "" var age = 0 fun eat() { println(name + "is eating. He is + " + age + "years old.") }}//Student.ktimport android.ap
2020-06-22 22:44:28
258
原创 Android 面向对象编程 类与对象
首先创建一个 person 类, 右击 com.example.xhello包 ->Kotlin File/Class, 在 弹出框中输入"Person". 对话在默认情况下自动创建一个 File, File 通常用于编写Kotlin 顶层函数和扩展函数,可以点击展开下拉列表进行切换, 如下图:参考:<<第一行代码>> 第三版...
2020-06-21 18:10:21
561
转载 IAR下使用noinit段
【原创】IAR下使用noinit段的方法和指定地址的变量分配 0赞 </div> <div class="info">...
2020-05-20 19:05:14
4175
原创 IMXRT1060 DCP-Sha256 校验
发送方先对将要发送的数据进行256位哈希值生成 -> sha-256-send,接收方把得到的数据再进行生成自己的256位哈希值->sha-256-reciv,若 sha-256-send ==sha-256-reciv 则接收数据正确。void TestSha256(void){ status_t status; size_t outLengt...
2020-05-20 15:47:46
316
转载 extern关键字详解
1 基本解释:extern可以置于变量或者函数前,以标示变量或者函数的定义在别的文件中,提示编译器遇到此变量和函数时在其他模块中寻找其定义。此外extern也可用来进行链接指定。 也就是说extern有两个作用,第一个,当它与"C"一起连用时,如: extern "C" void fun(int a, int b);则告诉编译器在编译fun这个函数名时按着C的规则去翻译相应的函数名而不是C++的,C++的规则在翻译这个函数名时会把fun...
2020-05-14 19:28:07
340
原创 IAR中如何定向把数组和函数放在指定的地址单元 2
下图是FRDM-KW36 的内存分配Flash : 256KB 0x00000000 ~ 0x0003FFFFSRAM : 64KB = 0x4000+ 0xC000 {0x1FFF_C000 – 0x1FFF_FFFF SRAM_L: Lower SRAM ...
2020-05-14 19:23:25
1648
原创 KW36 注册中断处理函数
以注册 2.4G Radio IRQ 为例链接文件定义 标号__VECTOR_TABLE__RAM_VECTOR_TABLE_SIZE__VECTOR_RAM//icf 链接文件define exported symbol __VECTOR_TABLE = m_interrupts_start;define exported symbol __VECTOR_RAM = isdefinedsymbol(__ram_vector_table__) ? m_interrupts_ram_st
2020-05-14 18:53:12
704
原创 ubuntu16 安装Sublime Text 3
下载Sublime Text3从官网下载Sublime Text3 Linux 版本安装包, 我的ubuntu时64点击64bit 开始下载https://www.sublimetext.com/3在/home/ 目录下创建 sublime_text_3 文件夹 并将安装包sublime_text_3_build_3211_x64.tar 放到/home/subli...
2020-04-04 22:24:31
409
转载 IAR生成Bin、hex、map等文件
1.生成Bin 、hex文件Options->Output Converter->Output format Intel extended 就是Hex文件 Binary 就是Bin文件 生成的文件一般在project ->Debug->Ex...
2020-04-03 15:53:20
1568
原创 IMXRT1060 DCP-Aes-CBC
Encrypts AES using CBC block mode.void TestAesCbc(void){ static const uint8_t keyAes128[] __attribute__((aligned)) = {0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6, ...
2020-04-03 10:52:12
226
原创 python 不换行操作
print 在默认情况下执行换行操作, 若在print 面加 end = "" 将不换行i = 1whle i <= 5: j = 1 while j <= 5: print("*", end = "") j = j + 1 i = i + 1 ...
2020-02-18 11:09:04
1047
1
原创 ARM-Thumb指令交互
ARM-Thumb交互是对汇编语言C/C++语言的ARM和Thumb代码进行连接方法,他进行两种状态间的转换,在进行转换时必须使用额外的代码,这些代码被称为胶合。ATPCS定义了ARM 和Thumb过程调用的标准。从一个ARM例程调用一个Thumb例程,内核必须切换状态。状态的变化由cpsr中的T位显示。再跳转到一个例程时,BX 和BXL分支指令可用于ARM和Thumb状态的切换。BX lr ...
2020-01-20 14:00:30
839
原创 取寄存器地址并转换为16位地址类型
typedef struct {__IO uint8_t FPROTSL; __IO uint8_t FPROTSH; } FTFE_Type;#define FTFx ((FTFE_Type *)FTFE_BASE)#define FTFx_FPROTSL_REG (FTFx->FPROTSL)stati...
2020-01-07 20:11:57
3236
原创 K 6 4 生成 flash loader_image.c
将IAR生成的.elf 文件放在bin目录下, 调用ielftool 工具将bin 文件生成elf格式文件 调用 create_fl_image.py 根据flashloader.bin 和flashloader.elf 文件生flashloader_image.c...
2019-12-30 17:18:55
117
原创 user guide for Coverity Wizard
Coverity Analysis 下载使用User manual for windowsThis part shows how to use coverity analysis(CA), named coverity wizard, in local desktop to analyze SDK source code with MISRA rules.Notes you nee...
2019-12-20 12:27:25
997
2
转载 How to configure LPSPI clock on I.MXRT1050
The document will introduce how to configure LPSPI clock on I.MXRT1050. The purpose is to help IMXRT customers better understand the clock tree and configure LPSPI clock in SDK. Customer c...
2019-12-17 15:47:27
289
转载 TINY4412:移植uboot、内核和挂接网络文件系统
开发环境:单板:TINY4412-1611系统:Ubuntu 16.04 64位编译工具链:arm-linux-gcc-4.3.2uboot版本:uboot_tiny4412-20130729内核版本:linux-3.5-20170221busybox版本:busybox-1.20.0 【注】 1、本文只用于移植,不会讲解其中原理。若读者希望了...
2019-12-06 23:08:20
623
转载 蓝牙协议分析(1)_基本概念
作者:wowo 发布于:2014-5-23 18:15 分类:蓝牙 1. 前言 自1994年由爱立信推出至今,蓝牙技术已经走过了20个岁月。从最初的Bluetooth V1.0,到Bluetooth V4.0(最新的为V4.1,2013年底发布),经历了近9个版本的修订后,发展为当前的状况。 说实话,如今的蓝牙4.1,简直是一个大杂烩:BR/EDR沿用旧的...
2019-12-06 19:58:49
202
转载 玩转BLE(1)_Eddystone beacon
玩转BLE(1)_Eddystone beacon 作者:wowo 发布于:2016-4-29 22:50 分类:蓝牙 1. 前言 你相信两条命令就可以把自己的破手机变成一个Beacon节点吗?不相信的话就接着往下看吧。 通过前几篇“蓝牙协议分析”相关的文章,特别是“蓝牙协议分析(3)_蓝牙低功耗(BLE)协议栈介绍”,相信大家对BLE协议栈已经有了基本的认识。在继...
2019-12-06 19:55:02
373
转载 eMMC 原理 1
eMMC 原理 1 :Flash Memory 简介 作者:codingbelief 发布于:2017-1-9 19:28 分类:基础技术 eMMC 是 Flash Memory 的一类,在详细介绍 eMMC 之前,先简单介绍一下 Flash Memory。 Flash Memory 是一种非易失性的存储器。在嵌入式系统中通常用于存放系统、应用和数据等。在 PC...
2019-12-06 19:47:25
981
JESD216D-01.pdf
2020-04-23
NXP_Kinetis_Bootloader_2_0_0
2018-03-31
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人