| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180 |
- #ifndef _JOYLINK_DEV_H_
- #define _JOYLINK_DEV_H_
- #ifdef __cplusplus
- extern "C"{
- #endif /* __cplusplus */
- #include "joylink.h"
- #define LIGHT_CMD_NONE (-1)
- #define LIGHT_CMD_POWER (1)
- #define LIGHT_CTRL_NONE (-1)
- #define LIGHT_CTRL_ON (1)
- #define LIGHT_CTRL_OFF (0)
- typedef struct __light_ctrl{
- char cmd;
- int para_power;
- int para_state;
- int para_look;
- int para_move;
- }LightCtrl_t;
- /**
- * brief:
- *
- * @Returns:
- */
- E_JLRetCode_t
- joylink_dev_is_net_ok();
- /**
- * brief:
- *
- * @Param: st
- *
- * @Returns:
- */
- E_JLRetCode_t
- joylink_dev_set_connect_st(int st);
- /**
- * brief:
- *
- * @Param: jlp
- *
- * @Returns:
- */
- E_JLRetCode_t
- joylink_dev_set_attr_jlp(JLPInfo_t *jlp);
- /**
- * brief:
- *
- * @Param: jlp
- *
- * @Returns:
- */
- E_JLRetCode_t
- joylink_dev_get_jlp_info(JLPInfo_t *jlp);
- /**
- * brief:
- *
- * @Param: out_modelcode
- * @Param: out_max
- *
- * @Returns:
- */
- int
- joylink_dev_get_modelcode(char *out_modelcode, int32_t out_max);
- /**
- * brief:
- *
- * @Param: out_snap
- * @Param: out_max
- *
- * @Returns:
- */
- int
- joylink_dev_get_snap_shot(char *out_snap, int32_t out_max);
- /**
- * brief:
- *
- * @Param: out_snap
- * @Param: out_max
- * @Param: code
- * @Param: feedid
- *
- * @Returns:
- */
- int
- joylink_dev_get_json_snap_shot(char *out_snap, int32_t out_max, int code, char *feedid);
- /**
- * brief:
- *
- * @Param: json_cmd
- *
- * @Returns:
- */
- E_JLRetCode_t
- joylink_dev_lan_json_ctrl(const char *json_cmd);
- /**
- * brief:
- *
- * @Param: src
- * @Param: src_len
- * @Param: ctr
- * @Param: from_server
- *
- * @Returns:
- */
- E_JLRetCode_t
- joylink_dev_script_ctrl(const char *src, int src_len, JLContrl_t *ctr, int from_server);
- /**
- * brief:
- *
- * @Param: otaOrder
- *
- * @Returns:
- */
- E_JLRetCode_t
- joylink_dev_ota(JLOtaOrder_t *otaOrder);
- /**
- * brief:
- */
- void
- joylink_dev_ota_status_upload();
- /**
- * brief:
- */
- int
- joylink_test_ota_crc();
- /**
- * brief:
- *
- * @Param: pidt
- *
- * @Returns:
- */
- E_JLRetCode_t
- joylink_dev_get_idt(jl2_d_idt_t *pidt);
- /**
- * brief:
- *
- * @Param:
- *
- * @Returns:
- */
- int
- joylink_dev_get_random();
- /**
- * brief:
- *
- * @Returns:
- */
- int joylink_dev_https_post( char* host, char* query ,char *revbuf,int buflen);
- /**
- * brief:
- *
- * @Returns:
- */
- int joylink_dev_run_status(JLRunStatus_t status);
- #ifdef __cplusplus
- }
- #endif /* __cplusplus */
- #endif
|