CI130X SDK API手册  2.2.0
本手册用于描述CI130X SDK各个组件和驱动API
ci130x_mailbox.h
浏览该文件的文档.
1 
10 #include <stdint.h>
11 
12 #ifndef _CI130X_MAILBOX_H_
13 #define _CI130X_MAILBOX_H_
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 typedef void (*mailbox_irq_cmd_cb_t)(uint32_t data0, uint32_t data1);
20 
21 typedef enum {
25 
26  MAILBOX_UNKNOWN_CMD = 0xFFFFFFFF,
28 
29 /**************************************************************************
30  function
31 ****************************************************************************/
32 void mailbox_preinit(void);
33 uint32_t mailbox_init(mailbox_irq_cmd_cb_t callback_func);
34 void mailbox_deinit(void);
35 uint32_t host_mail_send_msg(uint32_t data0, uint32_t data1, mailbox_cmd_t cmd);
36 uint32_t host_mail_rev_msg(uint32_t *data0, uint32_t *data1, mailbox_cmd_t *cmd);
37 void mailboxboot_sync(void);
38 uint32_t mailbox_send_msg(uint32_t data0, uint32_t data1, mailbox_cmd_t cmd);
39 
40 
41 #ifdef __cplusplus
42 }
43 #endif
44 
45 #endif
46 
uint32_t host_mail_send_msg(uint32_t data0, uint32_t data1, mailbox_cmd_t cmd)
Definition: ci130x_mailbox.h:22
void mailbox_deinit(void)
Definition: ci130x_mailbox.c:120
void(* mailbox_irq_cmd_cb_t)(uint32_t data0, uint32_t data1)
Definition: ci130x_mailbox.h:19
void mailboxboot_sync(void)
Definition: ci130x_mailbox.c:160
uint32_t mailbox_send_msg(uint32_t data0, uint32_t data1, mailbox_cmd_t cmd)
Definition: ci130x_mailbox.c:124
Definition: ci130x_mailbox.h:24
Definition: ci130x_mailbox.h:26
void mailbox_preinit(void)
Definition: ci130x_mailbox.c:97
uint32_t mailbox_init(mailbox_irq_cmd_cb_t callback_func)
Definition: ci130x_mailbox.c:103
uint32_t host_mail_rev_msg(uint32_t *data0, uint32_t *data1, mailbox_cmd_t *cmd)
mailbox_cmd_t
Definition: ci130x_mailbox.h:21
Definition: ci130x_mailbox.h:23