#include <sys/types.h>
#include <dirent.h>
#include "lms2012.h"
Go to the source code of this file.
|
enum | {
USBDEV,
USBHOST,
BTSLAVE,
BTMASTER1,
BTMASTER2,
BTMASTER3,
BTMASTER4,
BTMASTER5,
BTMASTER6,
BTMASTER7,
WIFI,
NO_OF_CHS
} |
|
enum | {
TXIDLE,
TXFILEUPLOAD,
TXGETFILE,
TXLISTFILES,
TXFOLDER,
TXFILE,
RXIDLE,
RXFILEDL
} |
|
enum | { SUBSTATE_IDLE,
FILE_IN_PROGRESS_WAIT_FOR_REPLY,
FILE_COMPLETE_WAIT_FOR_REPLY
} |
|
enum | { DIR_CMD_REPLY = 0x01,
DIR_CMD_NOREPLY = 0x02,
SYS_CMD_REPLY = 0x04,
SYS_CMD_NOREPLY = 0x08
} |
|
|
RESULT | cComInit (void) |
|
RESULT | cComOpen (void) |
|
RESULT | cComClose (void) |
|
RESULT | cComExit (void) |
|
void | cComRead (void) |
| opCOM_READ byte code More...
|
|
void | cComWrite (void) |
| opCOM_WRITE byte code More...
|
|
void | cComGet (void) |
| opCOM_GET byte code More...
|
|
void | cComSet (void) |
| opCOM_SET byte code More...
|
|
void | cComUpdate (void) |
|
void | cComTxUpdate (UBYTE ChNo) |
|
void | cComRemove (void) |
|
DATA8 | cComGetUsbStatus (void) |
|
UBYTE | cComGetBtStatus (void) |
|
UBYTE | cComGetWifiStatus (void) |
|
void | cComReady (void) |
| opCOM_READY byte code More...
|
|
void | cComTest (void) |
| opCOM_TEST byte code More...
|
|
void | cComReadData (void) |
|
void | cComWriteData (void) |
|
void | cComWriteFile (void) |
|
void | cComOpenMailBox (void) |
| opMAILBOX_OPEN byte code More...
|
|
void | cComWriteMailBox (void) |
| opMAILBOX_WRITE byte code More...
|
|
void | cComReadMailBox (void) |
| opMAILBOX_READ byte code More...
|
|
void | cComTestMailBox (void) |
| opMAILBOX_TEST byte code More...
|
|
void | cComReadyMailBox (void) |
| opMAILBOX_READY byte code More...
|
|
void | cComCloseMailBox (void) |
| opMAILBOX_CLOSE byte code More...
|
|
void | cComGetBrickName (DATA8 Length, DATA8 *pBrickName) |
|
DATA8 | cComGetEvent (void) |
|
RESULT | cComSetDeviceInfo (DATA8 Length, UBYTE *pInfo) |
|
RESULT | cComGetDeviceInfo (DATA8 Length, UBYTE *pInfo) |
|
RESULT | cComSetDeviceType (DATA8 Layer, DATA8 Port, DATA8 Type, DATA8 Mode) |
|
RESULT | cComGetDeviceData (DATA8 Layer, DATA8 Port, DATA8 Length, DATA8 *pType, DATA8 *pMode, DATA8 *pData) |
|
void | setComInstance (COM_GLOBALS *_Instance) |
|
COM_GLOBALS * | getComInstance () |
|
#define DIR_CMD_NO_REPLY_WITH_BUSY 0x8F |
#define DIR_CMD_REPLY_WITH_BUSY 0x0F |
#define MAILBOX_CONTENT_SIZE 250 |
#define MAX_MSG_SIZE 1024 |
#define NO_OF_MAILBOXES 30 |
#define SIZEOF_BEGINDL 10 |
#define SIZEOF_BEGINGETFILE 6 |
#define SIZEOF_BEGINLIST 6 |
#define SIZEOF_BEGINREAD 6 |
#define SIZEOF_BLUETOOTHPIN 7 |
#define SIZEOF_BUNDLEID 6 |
#define SIZEOF_BUNDLESEEDID 6 |
#define SIZEOF_CLOSEHANDLE 5 |
#define SIZEOF_CONTINUEDL 7 |
#define SIZEOF_CONTINUEGETFILE 7 |
#define SIZEOF_CONTINUELIST 7 |
#define SIZEOF_CONTINUEREAD 7 |
#define SIZEOF_LISTHANDLES 4 |
#define SIZEOF_REMOVEFILE 4 |
#define SIZEOF_RPLYBEGINDL 8 |
#define SIZEOF_RPLYBEGINGETFILE 12 |
#define SIZEOF_RPLYBEGINLIST 12 |
#define SIZEOF_RPLYBEGINREAD 12 |
#define SIZEOF_RPLYBLUETOOTHPIN 7 |
#define SIZEOF_RPLYBUNDLEID 7 |
#define SIZEOF_RPLYBUNDLESEEDID 7 |
#define SIZEOF_RPLYCLOSEHANDLE 8 |
#define SIZEOF_RPLYCONTINUEDL 8 |
#define SIZEOF_RPLYCONTINUEGETFILE 12 |
#define SIZEOF_RPLYCONTINUELIST 8 |
#define SIZEOF_RPLYCONTINUEREAD 8 |
#define SIZEOF_RPLYLISTHANDLES 7 |
#define SIZEOF_RPLYMAKEDIR 7 |
#define SIZEOF_RPLYREMOVEFILE 7 |
#define SIZEOF_WRITEMAILBOX 7 |
#define SIZEOF_WRITETOMAILBOXPAYLOAD 2 |
#define USB_CMD_IN_REP_SIZE 1024 |
#define USB_CMD_OUT_REP_SIZE 1024 |
Enumerator |
---|
USBDEV |
|
USBHOST |
|
BTSLAVE |
|
BTMASTER1 |
|
BTMASTER2 |
|
BTMASTER3 |
|
BTMASTER4 |
|
BTMASTER5 |
|
BTMASTER6 |
|
BTMASTER7 |
|
WIFI |
|
NO_OF_CHS |
|
Definition at line 937 of file c_com.h.
Enumerator |
---|
TXIDLE |
|
TXFILEUPLOAD |
|
TXGETFILE |
|
TXLISTFILES |
|
TXFOLDER |
|
TXFILE |
|
RXIDLE |
|
RXFILEDL |
|
Definition at line 1414 of file c_com.h.
Enumerator |
---|
SUBSTATE_IDLE |
|
FILE_IN_PROGRESS_WAIT_FOR_REPLY |
|
FILE_COMPLETE_WAIT_FOR_REPLY |
|
Definition at line 1428 of file c_com.h.
Enumerator |
---|
DIR_CMD_REPLY |
|
DIR_CMD_NOREPLY |
|
SYS_CMD_REPLY |
|
SYS_CMD_NOREPLY |
|
Definition at line 1437 of file c_com.h.
RESULT cComClose |
( |
void |
| ) |
|
void cComCloseMailBox |
( |
void |
| ) |
|
opMAILBOX_CLOSE byte code
Definition at line 3958 of file c_com.c.
opCOM_GET byte code
Definition at line 4208 of file c_com.c.
void cComGetBrickName |
( |
DATA8 |
Length, |
|
|
DATA8 * |
pBrickName |
|
) |
| |
UBYTE cComGetBtStatus |
( |
void |
| ) |
|
RESULT cComGetDeviceInfo |
( |
DATA8 |
Length, |
|
|
UBYTE * |
pInfo |
|
) |
| |
DATA8 cComGetEvent |
( |
void |
| ) |
|
DATA8 cComGetUsbStatus |
( |
void |
| ) |
|
UBYTE cComGetWifiStatus |
( |
void |
| ) |
|
void cComOpenMailBox |
( |
void |
| ) |
|
opMAILBOX_OPEN byte code
Definition at line 3573 of file c_com.c.
opCOM_READ byte code
Definition at line 3416 of file c_com.c.
void cComReadData |
( |
void |
| ) |
|
void cComReadMailBox |
( |
void |
| ) |
|
opMAILBOX_READ byte code
Definition at line 3781 of file c_com.c.
opCOM_READY byte code
Definition at line 3281 of file c_com.c.
void cComReadyMailBox |
( |
void |
| ) |
|
opMAILBOX_READY byte code
Definition at line 3923 of file c_com.c.
opCOM_SET byte code
Definition at line 5045 of file c_com.c.
RESULT cComSetDeviceInfo |
( |
DATA8 |
Length, |
|
|
UBYTE * |
pInfo |
|
) |
| |
opCOM_TEST byte code
Definition at line 3350 of file c_com.c.
void cComTestMailBox |
( |
void |
| ) |
|
opMAILBOX_TEST byte code
Definition at line 3891 of file c_com.c.
void cComTxUpdate |
( |
UBYTE |
ChNo | ) |
|
opCOM_WRITE byte code
Definition at line 3472 of file c_com.c.
void cComWriteData |
( |
void |
| ) |
|
void cComWriteFile |
( |
void |
| ) |
|
void cComWriteMailBox |
( |
void |
| ) |
|
opMAILBOX_WRITE byte code
Definition at line 3628 of file c_com.c.