\hypertarget{bsp___print_art_8cpp_source}{}\doxysection{bsp\+\_\+\+Print\+Art.\+cpp}
\label{bsp___print_art_8cpp_source}\index{D:/gitt/MicrochipFor32/bsp\_Device/bsp\_PrintArt.cpp@{D:/gitt/MicrochipFor32/bsp\_Device/bsp\_PrintArt.cpp}}
\mbox{\hyperlink{bsp___print_art_8cpp}{浏览该文件的文档.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{bsp___print_art_8cpp_source_l00001}00001 \textcolor{comment}{/*-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/}}
\DoxyCodeLine{\Hypertarget{bsp___print_art_8cpp_source_l00002}00002 \textcolor{comment}{ \#}}
\DoxyCodeLine{\Hypertarget{bsp___print_art_8cpp_source_l00003}00003 \textcolor{comment}{ \#  Copyright (c) 2022 Yuankang Liang(XerolySkinner)}}
\DoxyCodeLine{\Hypertarget{bsp___print_art_8cpp_source_l00004}00004 \textcolor{comment}{ \#}}
\DoxyCodeLine{\Hypertarget{bsp___print_art_8cpp_source_l00005}00005 \textcolor{comment}{ \#  本软件按原样提供,无任何明示或暗示}}
\DoxyCodeLine{\Hypertarget{bsp___print_art_8cpp_source_l00006}00006 \textcolor{comment}{ \#  在任何情况下,作者都不承担任何损害赔偿责任}}
\DoxyCodeLine{\Hypertarget{bsp___print_art_8cpp_source_l00007}00007 \textcolor{comment}{ \#}}
\DoxyCodeLine{\Hypertarget{bsp___print_art_8cpp_source_l00008}00008 \textcolor{comment}{ \#  使用的许可声明:}}
\DoxyCodeLine{\Hypertarget{bsp___print_art_8cpp_source_l00009}00009 \textcolor{comment}{ \#  1.  不得歪曲本软件的来源,你不能声称你编写了原始软件.}}
\DoxyCodeLine{\Hypertarget{bsp___print_art_8cpp_source_l00010}00010 \textcolor{comment}{ \#  2.  免费授予以任何目的,前提是版权声明出现在所有副本中.}}
\DoxyCodeLine{\Hypertarget{bsp___print_art_8cpp_source_l00011}00011 \textcolor{comment}{ \#      并且版权声明和许可声明同时出现.}}
\DoxyCodeLine{\Hypertarget{bsp___print_art_8cpp_source_l00012}00012 \textcolor{comment}{ \#  3.  你有使用,复制,修改,分发,和销售本软件的许可.}}
\DoxyCodeLine{\Hypertarget{bsp___print_art_8cpp_source_l00013}00013 \textcolor{comment}{ \#  4.  如果你在产品中使用,产品文档中的声明是赞赏的但不是必须的.}}
\DoxyCodeLine{\Hypertarget{bsp___print_art_8cpp_source_l00014}00014 \textcolor{comment}{ \#  5.  本通知不得从任何来源删除或更改.}}
\DoxyCodeLine{\Hypertarget{bsp___print_art_8cpp_source_l00015}00015 \textcolor{comment}{ \#}}
\DoxyCodeLine{\Hypertarget{bsp___print_art_8cpp_source_l00016}00016 \textcolor{comment}{ \#  Yuankang Liang(XerolySkinner)}}
\DoxyCodeLine{\Hypertarget{bsp___print_art_8cpp_source_l00017}00017 \textcolor{comment}{ \#      E-\/mail:zabbcccbbaz@163.com}}
\DoxyCodeLine{\Hypertarget{bsp___print_art_8cpp_source_l00018}00018 \textcolor{comment}{ \#      QQ:2715099320}}
\DoxyCodeLine{\Hypertarget{bsp___print_art_8cpp_source_l00019}00019 \textcolor{comment}{ \#      Mobile Phone:13005636215}}
\DoxyCodeLine{\Hypertarget{bsp___print_art_8cpp_source_l00020}00020 \textcolor{comment}{ \#}}
\DoxyCodeLine{\Hypertarget{bsp___print_art_8cpp_source_l00021}00021 \textcolor{comment}{ \#  All rights reserved.}}
\DoxyCodeLine{\Hypertarget{bsp___print_art_8cpp_source_l00022}00022 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{bsp___print_art_8cpp_source_l00023}00023 }
\DoxyCodeLine{\Hypertarget{bsp___print_art_8cpp_source_l00034}00034 \textcolor{comment}{//-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/}}
\DoxyCodeLine{\Hypertarget{bsp___print_art_8cpp_source_l00035}00035 \textcolor{comment}{//  类声明}}
\DoxyCodeLine{\Hypertarget{bsp___print_art_8cpp_source_l00036}00036 \textcolor{preprocessor}{\#include "{}\mbox{\hyperlink{bsp___print_art_8h}{bsp\_PrintArt.h}}"{}}}
\DoxyCodeLine{\Hypertarget{bsp___print_art_8cpp_source_l00038}00038 \textcolor{comment}{//-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/}}
\DoxyCodeLine{\Hypertarget{bsp___print_art_8cpp_source_l00039}00039 \textcolor{comment}{//  类函数}}
\DoxyCodeLine{\Hypertarget{bsp___print_art_8cpp_source_l00046}\mbox{\hyperlink{classbsp___print_art_a5b89d4eeaeca9f91f9b554ffeea0d272}{00046}} \textcolor{comment}{}\textcolor{keywordtype}{int} \mbox{\hyperlink{classbsp___print_art_a5b89d4eeaeca9f91f9b554ffeea0d272}{bsp\_PrintArt::print}}(\textcolor{keyword}{const} \textcolor{keywordtype}{char}* format, ...) \{}
\DoxyCodeLine{\Hypertarget{bsp___print_art_8cpp_source_l00047}00047     \mbox{\hyperlink{varint_8h_a92c50087ca0e64fa93fc59402c55f8ca}{u8}}* dat = (\mbox{\hyperlink{varint_8h_a92c50087ca0e64fa93fc59402c55f8ca}{u8}}*)malloc(\mbox{\hyperlink{classbsp___print_art_a7b7764b6a699a75f10a6caa85330cbe2}{Bufflen}});                      \textcolor{comment}{//  分配内存}}
\DoxyCodeLine{\Hypertarget{bsp___print_art_8cpp_source_l00048}00048     \textcolor{keywordflow}{if}(dat==NULL)\textcolor{keywordflow}{return} 1;                              \textcolor{comment}{//  判断分配成功与否}}
\DoxyCodeLine{\Hypertarget{bsp___print_art_8cpp_source_l00049}00049     \mbox{\hyperlink{varint_8h_afaa62991928fb9fb18ff0db62a040aba}{u32}} res;                                         \textcolor{comment}{//  返回状态码}}
\DoxyCodeLine{\Hypertarget{bsp___print_art_8cpp_source_l00050}00050     va\_list args;                                       \textcolor{comment}{//  不定长变量}}
\DoxyCodeLine{\Hypertarget{bsp___print_art_8cpp_source_l00051}00051     va\_start(args, format);                             \textcolor{comment}{//  初始化不定长变量}}
\DoxyCodeLine{\Hypertarget{bsp___print_art_8cpp_source_l00052}00052     res=vsprintf((\textcolor{keywordtype}{char}*)dat,(\textcolor{keyword}{const} \textcolor{keywordtype}{char}*)format, args); \textcolor{comment}{//  组合}}
\DoxyCodeLine{\Hypertarget{bsp___print_art_8cpp_source_l00053}00053     \mbox{\hyperlink{classbsp___print_art_a548aa058fedb64e031d91c48480b527e}{Transmit}}(dat, strlen((\textcolor{keyword}{const} \textcolor{keywordtype}{char}*)dat));            \textcolor{comment}{//  发送}}
\DoxyCodeLine{\Hypertarget{bsp___print_art_8cpp_source_l00054}00054     va\_end(args);                                       \textcolor{comment}{//  收尸}}
\DoxyCodeLine{\Hypertarget{bsp___print_art_8cpp_source_l00055}00055     free(dat);                                          \textcolor{comment}{//  回收内存}}
\DoxyCodeLine{\Hypertarget{bsp___print_art_8cpp_source_l00056}00056     \textcolor{keywordflow}{return} res;\}}
\DoxyCodeLine{\Hypertarget{bsp___print_art_8cpp_source_l00058}00058 \textcolor{comment}{//-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/}}
\DoxyCodeLine{\Hypertarget{bsp___print_art_8cpp_source_l00059}00059 \textcolor{comment}{//  构造函数}}
\DoxyCodeLine{\Hypertarget{bsp___print_art_8cpp_source_l00060}\mbox{\hyperlink{classbsp___print_art_a93c7cc212617232dcfd5e57a5d4f3521}{00060}} \mbox{\hyperlink{classbsp___print_art_a93c7cc212617232dcfd5e57a5d4f3521}{bsp\_PrintArt::bsp\_PrintArt}}(\textcolor{keywordtype}{void}) \{}
\DoxyCodeLine{\Hypertarget{bsp___print_art_8cpp_source_l00061}00061     \mbox{\hyperlink{classbsp___print_art_a7b7764b6a699a75f10a6caa85330cbe2}{Bufflen}} = 128;\}}
\DoxyCodeLine{\Hypertarget{bsp___print_art_8cpp_source_l00066}\mbox{\hyperlink{classbsp___print_art_a269df30feafe08cc3803aa9bf88b2a8e}{00066}} \mbox{\hyperlink{classbsp___print_art_a93c7cc212617232dcfd5e57a5d4f3521}{bsp\_PrintArt::bsp\_PrintArt}}(\mbox{\hyperlink{varint_8h_afaa62991928fb9fb18ff0db62a040aba}{u32}} len) \{}
\DoxyCodeLine{\Hypertarget{bsp___print_art_8cpp_source_l00067}00067     \mbox{\hyperlink{classbsp___print_art_a7b7764b6a699a75f10a6caa85330cbe2}{Bufflen}} = len;\}}

\end{DoxyCode}
