поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

NUMAKER датащи(PDF) 21 Page - List of Unclassifed Manufacturers

номер детали NUMAKER
подробное описание детали  32-bit Microcontroller
PDF  71 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  ETC2 [List of Unclassifed Manufacturers]
домашняя страница  
Logo ETC2 - List of Unclassifed Manufacturers

NUMAKER датащи(HTML) 21 Page - List of Unclassifed Manufacturers

Back Button NUMAKER Datasheet HTML 17Page - List of Unclassifed Manufacturers NUMAKER Datasheet HTML 18Page - List of Unclassifed Manufacturers NUMAKER Datasheet HTML 19Page - List of Unclassifed Manufacturers NUMAKER Datasheet HTML 20Page - List of Unclassifed Manufacturers NUMAKER Datasheet HTML 21Page - List of Unclassifed Manufacturers NUMAKER Datasheet HTML 22Page - List of Unclassifed Manufacturers NUMAKER Datasheet HTML 23Page - List of Unclassifed Manufacturers NUMAKER Datasheet HTML 24Page - List of Unclassifed Manufacturers NUMAKER Datasheet HTML 25Page - List of Unclassifed Manufacturers Next Button
Zoom Inzoom in Zoom Outzoom out
 21 / 71 page
background image
NuMaker Brick
Dec 23, 2016
Page 21 of 71
Rev 1.00
The following description uses the vibration sensor module as an example.
void AHRS_Control(void)
{
SensorsRead(SENSOR_ACC|SENSOR_GYRO,1);
nvtUpdateAHRS(SENSOR_ACC|SENSOR_GYRO);
AhrsRead(AHRSDev.Feature.data2.value, AHRSDev.Feature.data3.value,
AHRSDev.Output.data1.value); //(Vibration Level, alerm time, clear flag)
}
Figure 2-10 Non-Periodic Program of Sensor Module
In the second stage, the function program will be checked or executed continuously and this program
section is outside of the if(TMR1INTCount != RecentTimeCounter){} block.
// -----------Slave part execute subfunction--------------
if (pTidList[devNum]->func.pfnPulling)
pTidList[devNum]->func.pfnPulling();
Figure 2-11 Non-Periodic Program of Sensor Module
The sensing program executed non-periodically shown in Figure 2-11 must correspond with the non-
periodic function of a master or sensor module as shown in Figure 2-12.
APFN_FUNC_T pfnDevFunc[MAX_TID_DEV] =
{
...
/* for embedded device boards */
{Battery_Init,
MasterControl,
NULL,
report_battery},
{Buzzer_Init,
NULL,
Buzzer_Control,
report_buzzer},
{Led_Init,
NULL,
Led_Control,
report_led},
{AHRS_Init,
AHRS_Control,
AHRS_Cal,
report_ahrs},
{SonarInit,
SonarDetect,
SonarTimeOutCheck,
report_sonar},
{HTU21D_Init,
WaitHTU21D,
GetHTU21DTemp,
report_temp},
{Gas_Init,
GetGas,
NULL,
report_gas},
{IR_Init,
IR_Control,
IR_Check,
report_ir},
{key_init,
NULL,
NULL,
report_key},
...
};
Figure 2-12 Structural Function Table of Sensor Modules
4 -Ⅱ: Sensor module executes
non-periodic function
Sensor functions
executed immediately



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71


датащи скачать

Go To PDF Page


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com