原创 i2c for at24cxx

    CLOCK and DATA TRANSITIONS: The SDA pin is normally pulled high with an external device. Data on the SDA pin may ch

原创 vim insert uinicode symbol

set encoding=utf-8 insert or command mode(not normal mode),press Ctrl+v , then u, then unicode val ctrl+v u 2018 -> ‘ 

原创 clause45 VS cluause22

    http://www.ieee802.org/3/efm/public/nov02/oam/pannell_oam_1_1102.pdf

原创 FAERIE QVEENE 仙后節選

FAERIE QVEENE《仙后》Canto 第2卷第4章第33-37節 33 Betwixt them both, they haue me doen to dye,           他們母子二人想置我於死地, Through wo

原创 statements

/////////////////////////////////////////// do      statement while (condition); //////////////////////////////////////

原创 copy initialization and direct initialization

string s5("hiya");// direct initialization string s6 = ("hiya");// copy  initialization string s7 = "hiya";// copy init

原创 Is bar an rvalue or an lvalue?

  I posted this answer: https://stackoverflow.com/a/28459180/2642059 Which contains the following code: void foo(stri

原创 A question about python deepcopy and shallow copy.

A question about python deepcopy and shallow copy. the post at What is the difference between a deep copy and a shallow

原创 bublle sort

/*from small to big*/ int bubble_sort(int arry[], int size) {     int outidx = 0;     int inidx  = 0;     for (outidx =

原创 mii/mdio

(一)MII/MDIO接口詳解   本文主要分析MII/RMII/SMII,以及GMII/RGMII/SGMII接口的信號定義,及相關知識,同時本文也對RJ-45接口進行了總結,分析了在10/100模式下和1000M模式下的設計方法。  

原创 dead loop when using unsigned char

for (unsigned char ucIdx = 0; ucIdx < iMax; ++ucIdx) { malloc mem; }

原创 再議MII、RMII、GMII接口

(二)再議MII、RMII、GMII接口 概述:         MII (Media Independent Interface(介質無關接口)或稱爲媒體獨立接口,它是IEEE-802.3定義的以太網行業標準。它包括一個數據接口和一個M

原创 num of ones in int

int numofones(int iVar, int *iCnt) { *iCnt = 0; while (iVar) {     *iCnt += 1;      iVar = iVar & (iVar-1); } return 0;

原创 class

///////////////////////////////////////////////     by default,  the type of    this   is a const pointer to the noncon

原创 spi bus

SPI是串行外設接口(Serial Peripheral Interface)的縮寫。是一種同步串行接口技術,是高速的,全雙工,同步的通信總線。   1、SPI接口的優點 支持全雙工操作; 操作簡單; 數據傳輸速率較高。   同時,它也具