/nrf52832-nimble/rt-thread/components/drivers/spi/ |
H A D | qspi_core.c | 49 rt_size_t rt_qspi_transfer_message(struct rt_qspi_device *device, struct rt_qspi_message *message) in rt_qspi_transfer_message() argument 54 RT_ASSERT(message != RT_NULL); in rt_qspi_transfer_message() 85 /* transmit each SPI message */ in rt_qspi_transfer_message() 87 result = device->parent.bus->ops->xfer(&device->parent, &message->parent); in rt_qspi_transfer_message() 106 struct rt_qspi_message message; in rt_qspi_send_then_recv() local 111 message.instruction.content = ptr[0]; in rt_qspi_send_then_recv() 112 message.instruction.qspi_lines = 1; in rt_qspi_send_then_recv() 121 message.address.content = (ptr[1] << 24) | (ptr[2] << 16) | (ptr[3] << 8) | (ptr[4]); in rt_qspi_send_then_recv() 122 message.address.size = 32; in rt_qspi_send_then_recv() 128 message.address.content = (ptr[1] << 16) | (ptr[2] << 8) | (ptr[3]); in rt_qspi_send_then_recv() [all …]
|
H A D | spi_core.c | 11 * 2012-05-18 bernard Changed SPI message to message list. 109 struct rt_spi_message message; in rt_spi_send_then_send() local 135 message.send_buf = send_buf1; in rt_spi_send_then_send() 136 message.recv_buf = RT_NULL; in rt_spi_send_then_send() 137 message.length = send_length1; in rt_spi_send_then_send() 138 message.cs_take = 1; in rt_spi_send_then_send() 139 message.cs_release = 0; in rt_spi_send_then_send() 140 message.next = RT_NULL; in rt_spi_send_then_send() 142 result = device->bus->ops->xfer(device, &message); in rt_spi_send_then_send() 150 message.send_buf = send_buf2; in rt_spi_send_then_send() [all …]
|
H A D | spi_msd.c | 146 struct rt_spi_message message; in _send_cmd() local 167 /* initial message */ in _send_cmd() 168 message.send_buf = cmd_buffer; in _send_cmd() 169 message.recv_buf = recv_buffer; in _send_cmd() 170 message.length = sizeof(cmd_buffer); in _send_cmd() 171 message.cs_take = message.cs_release = 0; in _send_cmd() 175 /* transfer message */ in _send_cmd() 176 device->bus->ops->xfer(device, &message); in _send_cmd() 182 /* initial message */ in _send_cmd() 183 message.send_buf = &send; in _send_cmd() [all …]
|
H A D | spi_flash_sfud.c | 177 struct rt_qspi_message message; in qspi_read() local 184 /* set message struct */ in qspi_read() 185 message.instruction.content = qspi_read_cmd_format->instruction; in qspi_read() 186 message.instruction.qspi_lines = qspi_read_cmd_format->instruction_lines; in qspi_read() 188 message.address.content = addr; in qspi_read() 189 message.address.size = qspi_read_cmd_format->address_size; in qspi_read() 190 message.address.qspi_lines = qspi_read_cmd_format->address_lines; in qspi_read() 192 message.alternate_bytes.content = 0; in qspi_read() 193 message.alternate_bytes.size = 0; in qspi_read() 194 message.alternate_bytes.qspi_lines = 0; in qspi_read() [all …]
|
H A D | spi_wifi_rw009.c | 348 struct rt_spi_message message; in spi_wifi_transfer() local 351 /* setup message */ in spi_wifi_transfer() 352 message.send_buf = RT_NULL; in spi_wifi_transfer() 353 message.recv_buf = &resp; in spi_wifi_transfer() 354 message.length = sizeof(resp); in spi_wifi_transfer() 355 message.cs_take = 1; in spi_wifi_transfer() 356 message.cs_release = 0; in spi_wifi_transfer() 360 /* transfer message */ in spi_wifi_transfer() 361 rt_spi_device->bus->ops->xfer(rt_spi_device, &message); in spi_wifi_transfer() 396 /* setup message */ in spi_wifi_transfer() [all …]
|
/nrf52832-nimble/rt-thread/components/net/lwip-2.0.2/src/include/lwip/ |
H A D | debug.h | 71 /** flag for LWIP_DEBUGF to enable that debug message */ 73 /** flag for LWIP_DEBUGF to disable that debug message */ 79 /** @name Debug message types (LWIP_DBG_TYPES_ON) 82 /** flag for LWIP_DEBUGF indicating a tracing message (to follow program flow) */ 84 /** flag for LWIP_DEBUGF indicating a state debug message (to follow module states) */ 88 /** flag for LWIP_DEBUGF to halt after printing this debug message */ 116 #define LWIP_ASSERT(message, assertion) do { if (!(assertion)) { \ argument 117 LWIP_PLATFORM_ASSERT(message); }} while(0) 119 #error "If you want to use LWIP_ASSERT, LWIP_PLATFORM_ASSERT(message) needs to be defined in your a… 122 #define LWIP_ASSERT(message, assertion) argument [all …]
|
H A D | sys.h | 246 * Post a message to an mbox - may not fail 248 * @param mbox mbox to posts the message 249 * @param msg message to post (ATTENTION: can be NULL) 254 * Try to post a message to an mbox - may fail if full or ISR 255 * @param mbox mbox to posts the message 256 * @param msg message to post (ATTENTION: can be NULL) 261 * Wait for a new message to arrive in the mbox 262 * @param mbox mbox to get a message from 263 * @param msg pointer where the message is stored 264 * @param timeout maximum time (in milliseconds) to wait for a message (0 = wait forever) [all …]
|
/nrf52832-nimble/rt-thread/components/net/lwip-2.1.0/src/include/lwip/ |
H A D | debug.h | 71 /** flag for LWIP_DEBUGF to enable that debug message */ 73 /** flag for LWIP_DEBUGF to disable that debug message */ 79 /** @name Debug message types (LWIP_DBG_TYPES_ON) 82 /** flag for LWIP_DEBUGF indicating a tracing message (to follow program flow) */ 84 /** flag for LWIP_DEBUGF indicating a state debug message (to follow module states) */ 88 /** flag for LWIP_DEBUGF to halt after printing this debug message */ 116 #define LWIP_ASSERT(message, assertion) do { if (!(assertion)) { \ argument 117 LWIP_PLATFORM_ASSERT(message); }} while(0) 119 #define LWIP_ASSERT(message, assertion) argument 124 #define LWIP_PLATFORM_ERROR(message) LWIP_PLATFORM_ASSERT(message) argument [all …]
|
H A D | sys.h | 288 * Post a message to an mbox - may not fail 291 * @param mbox mbox to posts the message 292 * @param msg message to post (ATTENTION: can be NULL) 297 * Try to post a message to an mbox - may fail if full. 301 * @param mbox mbox to posts the message 302 * @param msg message to post (ATTENTION: can be NULL) 307 * Try to post a message to an mbox - may fail if full. 311 * @param mbox mbox to posts the message 312 * @param msg message to post (ATTENTION: can be NULL) 317 * Blocks the thread until a message arrives in the mailbox, but does [all …]
|
/nrf52832-nimble/rt-thread/examples/nanopb/ |
H A D | simple.c | 9 /* This is the buffer where we will store our message. */ in nanopb_test() 14 /* Encode our message */ in nanopb_test() 16 /* Allocate space on the stack to store the message data. in nanopb_test() 20 SimpleMessage message = SimpleMessage_init_zero; in nanopb_test() local 26 message.lucky_number = 13; in nanopb_test() 28 /* Now we are ready to encode the message! */ in nanopb_test() 29 status = pb_encode(&stream, SimpleMessage_fields, &message); in nanopb_test() 40 /* Now we could transmit the message over network, store it in a file or in nanopb_test() 47 /* Allocate space for the decoded message. */ in nanopb_test() 48 SimpleMessage message; in nanopb_test() local [all …]
|
/nrf52832-nimble/rt-thread/components/net/lwip-1.4.1/src/include/lwip/ |
H A D | debug.h | 51 /** flag for LWIP_DEBUGF to enable that debug message */ 53 /** flag for LWIP_DEBUGF to disable that debug message */ 56 /** flag for LWIP_DEBUGF indicating a tracing message (to follow program flow) */ 58 /** flag for LWIP_DEBUGF indicating a state debug message (to follow module states) */ 62 /** flag for LWIP_DEBUGF to halt after printing this debug message */ 66 #define LWIP_ASSERT(message, assertion) do { if(!(assertion)) \ argument 67 LWIP_PLATFORM_ASSERT(message); } while(0) 69 #define LWIP_ASSERT(message, assertion) argument 72 /** if "expression" isn't true, then print "message" and execute "handler" expression */ 74 #define LWIP_ERROR(message, expression, handler) do { if (!(expression)) { \ argument [all …]
|
H A D | sys.h | 175 /** Post a message to an mbox - may not fail 177 * @param mbox mbox to posts the message 178 * @param msg message to post (ATTENTION: can be NULL) */ 180 /** Try to post a message to an mbox - may fail if full or ISR 181 * @param mbox mbox to posts the message 182 * @param msg message to post (ATTENTION: can be NULL) */ 184 /** Wait for a new message to arrive in the mbox 185 * @param mbox mbox to get a message from 186 * @param msg pointer where the message is stored 187 * @param timeout maximum time (in milliseconds) to wait for a message [all …]
|
/nrf52832-nimble/rt-thread/components/drivers/include/drivers/ |
H A D | spi.h | 57 * SPI message structure 99 rt_uint32_t (*xfer)(struct rt_spi_device *device, struct rt_spi_message *message); 244 * This function transfers a message list to the SPI device. 247 * @param message the message list to be transmitted to SPI device 249 * @return RT_NULL if transmits message list successfully, 250 * SPI message which be transmitted failed. 253 struct rt_spi_message *message); 290 * This function appends a message to the SPI message list. 292 * @param list the SPI message list header. 293 * @param message the message pointer to be appended to the message list. [all …]
|
/nrf52832-nimble/packages/NimBLE-latest/nimble/host/mesh/include/mesh/ |
H A D | access.h | 122 /** Message sending context. */ 124 /** NetKey Index of the subnet to send the message on. */ 127 /** AppKey Index to encrypt the message with. */ 133 /** Destination address of a received message. Not used for sending. */ 150 /* Minimum required message length */ 153 /* Message handler for the opcode */ 279 /** @brief Publication buffer, containing the publication message. 284 * contain a valid publication message before calling the 304 * message. 360 * @brief Send an Access Layer message. [all …]
|
/nrf52832-nimble/rt-thread/tools/kconfig-frontends/utils/ |
H A D | gettext.c | 83 struct message { struct 86 struct message *next; argument 90 static struct message *message__list; argument 92 static struct message *message__new(const char *msg, char *option, in message__new() 95 struct message *self = malloc(sizeof(*self)); in message__new() 120 static struct message *mesage__find(const char *msg) in mesage__find() 122 struct message *m = message__list; in mesage__find() 133 static int message__add_file_line(struct message *self, const char *file, in message__add_file_line() 155 struct message *m = mesage__find(escaped); in message__add() 189 static void message__print_file_lineno(struct message *self) in message__print_file_lineno() [all …]
|
/nrf52832-nimble/rt-thread/src/ |
H A D | ipc.c | 13 * 2006-05-12 Bernard implement mailbox and message queue 19 * 2006-06-07 Bernard fix the message queue send bug 33 * 2011-12-18 Bernard add more parameter checking in message queue 1538 /* increase message entry */ in rt_mb_send_wait() 1687 /* decrease message entry */ in rt_mb_recv() 1766 * This function will initialize a message queue and put it under control of 1769 * @param mq the message object 1770 * @param name the name of message queue 1772 * @param msg_size the maximum size of message 1774 * @param flag the flag of message queue [all …]
|
/nrf52832-nimble/rt-thread/components/net/lwip-2.1.0/src/api/ |
H A D | tcpip.c | 71 /* wait for a message with timers disabled (e.g. pass a timer-check trigger into tcpip_thread) */ 74 /* wait for a message, timeouts are processed while waiting */ 77 * Wait (forever) for a message to arrive in an mbox. 80 * @param mbox the mbox to fetch the message from 81 * @param msg the place to store the message 99 /* We try again to fetch a message from the mbox. */ in tcpip_timeouts_mbox_fetch() 108 before a message could be fetched. */ in tcpip_timeouts_mbox_fetch() 110 /* We try again to fetch a message from the mbox. */ in tcpip_timeouts_mbox_fetch() 119 * thread using message boxes. 141 /* wait for a message, timeouts are processed while waiting */ in tcpip_thread() [all …]
|
/nrf52832-nimble/rt-thread/components/cplusplus/ |
H A D | Queue.h | 22 * A message can be a integer or pointer value to a certain type T that is send 24 * @param T data type of a single message element. 31 /** Create and initialise a message Queue. */ 42 /** Put a message in a Queue. 43 @param data message pointer. 52 /** Get a message or Wait for a message from a Queue.
|
/nrf52832-nimble/rt-thread/components/drivers/usb/usbdevice/class/ |
H A D | rndis.h | 33 /* Remote NDIS message types */ 64 /* Remote NDIS generic message type */ 88 /* Remote NDIS Initialize Message */ 119 /* Remote NDIS Halt Message */ 127 /* Remote NDIS Query Message */ 152 /* Remote NDIS Set Message */ 175 /* Remote NDIS Soft Reset Message */ 183 /* Remote NDIS Indicate Status Message */
|
/nrf52832-nimble/rt-thread/examples/kernel/ |
H A D | messageq_simple.c | 32 rt_kprintf("thread1: recv msg from message queue, the content:%s\n", buf); in thread1_entry() 44 char buf[] = "this is message No.x"; in thread2_entry() 52 rt_kprintf("thread2: send message - %s\n", buf); in thread2_entry() 58 rt_kprintf("message queue full, delay 1s\n"); in thread2_entry() 71 char buf[] = "this is an urgent message!"; in thread3_entry() 75 rt_kprintf("thread3: send an urgent message\n"); in thread3_entry() 158 FINSH_FUNCTION_EXPORT(_tc_messageq_simple, a simple message queue example);
|
/nrf52832-nimble/rt-thread/components/net/lwip-2.0.2/src/api/ |
H A D | tcpip.c | 69 /* wait for a message, timeouts are processed while waiting */ 72 /* wait for a message with timers disabled (e.g. pass a timer-check trigger into tcpip_thread) */ 79 * thread using message boxes. 100 /* wait for a message, timeouts are processed while waiting */ in tcpip_thread() 104 LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip_thread: invalid message: NULL\n")); in tcpip_thread() 105 LWIP_ASSERT("tcpip_thread: invalid message", 0); in tcpip_thread() 111 LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip_thread: API message %p\n", (void *)msg)); in tcpip_thread() 115 LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip_thread: API CALL message %p\n", (void *)msg)); in tcpip_thread() 154 LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip_thread: invalid message: %d\n", msg->type)); in tcpip_thread() 155 LWIP_ASSERT("tcpip_thread: invalid message", 0); in tcpip_thread() [all …]
|
/nrf52832-nimble/rt-thread/components/net/uip/uip/ |
H A D | uip-fw.h | 120 * A non-error message that indicates that a packet should be 128 * A non-error message that indicates that something went OK. 135 * A non-error message that indicates that a packet was forwarded. 142 * A non-error message that indicates that a zero-length packet 150 * An error message that indicates that a packet that was too large 158 * An error message that indicates that no suitable interface could be 166 * An error message that indicates that a packet that should be
|
/nrf52832-nimble/rt-thread/components/CMSIS/RTOS/ |
H A D | cmsis_os.h | 114 #define osFeature_MessageQ 1 ///< Message Queues: 1=available, 0=not available 152 osEventMessage = 0x10, ///< function completed; message event occurred. 163 … = 0xFF, ///< unspecified RTOS error: run-time error but no other error message fits. 205 /// Message ID identifies the message queue (pointer to a message queue control block). 256 /// Definition structure for message queue 279 uint32_t v; ///< message as 32-bit value 280 void *p; ///< message or mail as void pointer 285 osMessageQId message_id; ///< message id obtained by \ref osMessageCreate 378 /// Wait for Signal, Message, Mail, or Timeout 380 /// \return event that contains signal, message, or mail information or error code. [all …]
|
/nrf52832-nimble/packages/NimBLE-latest/apps/blemesh_models_example_2/src/ |
H A D | device_composition.c | 149 /* message handlers (Start) */ 151 /* Generic OnOff Server message handlers */ 264 /* Generic OnOff Client message handlers */ 278 /* Generic Level Server message handlers */ 580 /* Generic Level Client message handlers */ 594 /* Generic Default Transition Time Server message handlers */ 662 /* Generic Default Transition Time Client message handlers */ 671 /* Generic Power OnOff Server message handlers */ 687 /* Generic Power OnOff Client message handlers */ 696 /* Generic Power OnOff Setup Server message handlers */ [all …]
|
/nrf52832-nimble/rt-thread/components/net/lwip-1.4.1/src/arch/ |
H A D | sys_arch.c | 443 /** Post a message to an mbox - may not fail 445 * @param mbox mbox to posts the message 446 * @param msg message to post (ATTENTION: can be NULL) 470 /** Wait for a new message to arrive in the mbox 471 * @param mbox mbox to get a message from 472 * @param msg pointer where the message is stored 473 * @param timeout maximum time (in milliseconds) to wait for a message 474 * @return time (in milliseconds) waited for a message, may be 0 if not waited 521 /** Wait for a new message to arrive in the mbox 522 * @param mbox mbox to get a message from [all …]
|