Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
OSNAPprotocoleDefine.h
00001 00002 #ifndef OSNAP_H 00003 #define OSNAP_H 00004 00005 //#define NONE 0 00006 00007 00008 struct osnapModule_t{ 00009 unsigned char addrModule; //osnapRegisterA 00010 00011 union{ 00012 unsigned char getByte; 00013 struct 00014 { 00015 unsigned char typeFormat : 1; 00016 unsigned char linkToReaction : 3; 00017 unsigned char addrPeripherique : 4; 00018 }; 00019 }osnapRegisterB; 00020 00021 union{ 00022 unsigned char getByte; 00023 struct 00024 { 00025 unsigned char positionSpatiale : 6; 00026 unsigned char typeFormat : 2; 00027 }; 00028 }osnapRegisterC; 00029 00030 union{ 00031 unsigned char getByte; 00032 struct 00033 { 00034 unsigned char sousType : 6; 00035 unsigned char type : 2; 00036 }; 00037 }osnapRegisterD; 00038 00039 }; 00040 typedef enum { 00041 NON_DETERMINER = 0, 00042 DIGITALE = 1, 00043 ANALOGIQUE=2 00044 } TypeDeFormat; 00045 00046 typedef enum { 00047 //NONE =0, 00048 CAPTEUR = 1, 00049 ACTIONEUR = 2, 00050 MEMOIRE = 3 00051 } typeModue; 00052 00053 typedef enum { 00054 //NONE =0, 00055 PROXIMITEE = 1, 00056 DISTANCE = 2, 00057 ULTRASONIQUE = 3, 00058 TEMPERATURE =4, 00059 } sousType_Capteur; 00060 00061 typedef enum { 00062 //NONE =0, 00063 00064 } sousType_Actionneur; 00065 00066 typedef enum { 00067 //NONE =0, 00068 00069 } sousType_Memoire; 00070 00071 typedef enum { 00072 //NONE =0, 00073 00074 } positionSpatial; 00075 00076 #endif // OSNAP_H //
Generated on Tue Jul 12 2022 19:04:22 by
1.7.2