Home
last modified time | relevance | path

Searched refs:otEXPECT_ACTION (Results 1 – 10 of 10) sorted by relevance

/openthread-2.7.6/examples/platforms/simulation/
Dtrel.c116 otEXPECT_ACTION((fd = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) != -1, perror("socket(sTxFd)")); in initFds()
122otEXPECT_ACTION(setsockopt(fd, IPPROTO_IP, IP_MULTICAST_IF, &sockaddr.sin_addr, sizeof(sockaddr.si… in initFds()
125 otEXPECT_ACTION(setsockopt(fd, IPPROTO_IP, IP_MULTICAST_LOOP, &one, sizeof(one)) != -1, in initFds()
128otEXPECT_ACTION(bind(fd, (struct sockaddr *)&sockaddr, sizeof(sockaddr)) != -1, perror("bind(sTxFd… in initFds()
133 otEXPECT_ACTION((fd = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) != -1, perror("socket(sRxFd)")); in initFds()
135 otEXPECT_ACTION(setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &one, sizeof(one)) != -1, in initFds()
137 otEXPECT_ACTION(setsockopt(fd, SOL_SOCKET, SO_REUSEPORT, &one, sizeof(one)) != -1, in initFds()
146otEXPECT_ACTION(setsockopt(fd, IPPROTO_IP, IP_MULTICAST_IF, &mreq.imr_address, sizeof(mreq.imr_add… in initFds()
148 otEXPECT_ACTION(setsockopt(fd, IPPROTO_IP, IP_ADD_MEMBERSHIP, &mreq, sizeof(mreq)) != -1, in initFds()
155otEXPECT_ACTION(bind(fd, (struct sockaddr *)&sockaddr, sizeof(sockaddr)) != -1, perror("bind(sRxFd… in initFds()
[all …]
Dentropy.c99 otEXPECT_ACTION(aOutput && aOutputLength, error = OT_ERROR_INVALID_ARGS); in otPlatEntropyGet()
102 otEXPECT_ACTION(file != NULL, error = OT_ERROR_FAILED); in otPlatEntropyGet()
105 otEXPECT_ACTION(readLength == aOutputLength, error = OT_ERROR_FAILED); in otPlatEntropyGet()
124 otEXPECT_ACTION(aOutput && aOutputLength, error = OT_ERROR_INVALID_ARGS); in otPlatEntropyGet()
Duart.c102otEXPECT_ACTION(tcgetattr(s_in_fd, &termios) == 0, perror("tcgetattr"); error = OT_ERROR_GENERIC); in otPlatUartEnable()
118otEXPECT_ACTION(cfsetispeed(&termios, OPENTHREAD_SIMULATION_UART_BAUDRATE) == 0, perror("cfsetispe… in otPlatUartEnable()
122otEXPECT_ACTION(tcsetattr(s_in_fd, TCSANOW, &termios) == 0, perror("tcsetattr"); error = OT_ERROR_… in otPlatUartEnable()
128otEXPECT_ACTION(tcgetattr(s_out_fd, &termios) == 0, perror("tcgetattr"); error = OT_ERROR_GENERIC); in otPlatUartEnable()
141otEXPECT_ACTION(cfsetospeed(&termios, OPENTHREAD_SIMULATION_UART_BAUDRATE) == 0, perror("cfsetospe… in otPlatUartEnable()
145otEXPECT_ACTION(tcsetattr(s_out_fd, TCSANOW, &termios) == 0, perror("tcsetattr"); error = OT_ERROR… in otPlatUartEnable()
170 otEXPECT_ACTION(s_write_length == 0, error = OT_ERROR_BUSY); in otPlatUartSend()
217 otEXPECT_ACTION(s_write_buffer != NULL && s_write_length > 0, error = OT_ERROR_INVALID_STATE); in otPlatUartFlush()
Dlogging.c50 otEXPECT_ACTION(charsWritten >= 0, logString[offset] = 0); \
52 otEXPECT_ACTION(offset < sizeof(logString), logString[sizeof(logString) - 1] = 0)
73 otEXPECT_ACTION(charsWritten >= 0, logString[offset] = 0); in otPlatLog()
Dradio.c171 otEXPECT_ACTION(sSrcMatchEnabled, rval = true); in hasFramePending()
283 otEXPECT_ACTION((fd = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) != -1, perror("socket(sTxFd)")); in initFds()
290otEXPECT_ACTION(setsockopt(fd, IPPROTO_IP, IP_MULTICAST_IF, &sockaddr.sin_addr, sizeof(sockaddr.si… in initFds()
293 otEXPECT_ACTION(setsockopt(fd, IPPROTO_IP, IP_MULTICAST_LOOP, &one, sizeof(one)) != -1, in initFds()
296otEXPECT_ACTION(bind(fd, (struct sockaddr *)&sockaddr, sizeof(sockaddr)) != -1, perror("bind(sTxFd… in initFds()
301 otEXPECT_ACTION((fd = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) != -1, perror("socket(sRxFd)")); in initFds()
303 otEXPECT_ACTION(setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &one, sizeof(one)) != -1, in initFds()
305 otEXPECT_ACTION(setsockopt(fd, SOL_SOCKET, SO_REUSEPORT, &one, sizeof(one)) != -1, in initFds()
317otEXPECT_ACTION(setsockopt(fd, IPPROTO_IP, IP_MULTICAST_IF, &mreq.imr_address, sizeof(mreq.imr_add… in initFds()
319 otEXPECT_ACTION(setsockopt(fd, IPPROTO_IP, IP_ADD_MEMBERSHIP, &mreq, sizeof(mreq)) != -1, in initFds()
[all …]
/openthread-2.7.6/examples/platforms/utils/
Dsoft_source_match_table.c120otEXPECT_ACTION(entry >= 0 && entry < RADIO_CONFIG_SRC_MATCH_SHORT_ENTRY_NUM, error = OT_ERROR_NO_… in otPlatRadioAddSrcMatchShortEntry()
138otEXPECT_ACTION(entry >= 0 && entry < RADIO_CONFIG_SRC_MATCH_SHORT_ENTRY_NUM, error = OT_ERROR_NO_… in otPlatRadioClearSrcMatchShortEntry()
232otEXPECT_ACTION(entry >= 0 && entry < RADIO_CONFIG_SRC_MATCH_EXT_ENTRY_NUM, error = OT_ERROR_NO_BU… in otPlatRadioAddSrcMatchExtEntry()
250otEXPECT_ACTION(entry >= 0 && entry < RADIO_CONFIG_SRC_MATCH_EXT_ENTRY_NUM, error = OT_ERROR_NO_AD… in otPlatRadioClearSrcMatchExtEntry()
Dcode_utils.h64 #define otEXPECT_ACTION(aCondition, aAction) \ macro
/openthread-2.7.6/examples/platforms/cc2538/
Dradio.c597 otEXPECT_ACTION(((HWREG(RFCORE_XREG_FSMSTAT1) & RFCORE_XREG_FSMSTAT1_CCA) && in otPlatRadioTransmit()
1084 otEXPECT_ACTION(entry >= 0, error = OT_ERROR_NO_BUFS); in otPlatRadioAddSrcMatchShortEntry()
1109 otEXPECT_ACTION(entry >= 0, error = OT_ERROR_NO_BUFS); in otPlatRadioAddSrcMatchExtEntry()
1133 otEXPECT_ACTION(entry >= 0, error = OT_ERROR_NO_ADDRESS); in otPlatRadioClearSrcMatchShortEntry()
1150 otEXPECT_ACTION(entry >= 0, error = OT_ERROR_NO_ADDRESS); in otPlatRadioClearSrcMatchExtEntry()
1226 otEXPECT_ACTION(aPower != NULL, error = OT_ERROR_INVALID_ARGS); in otPlatRadioGetTransmitPower()
Dentropy.c92 otEXPECT_ACTION(aOutput, error = OT_ERROR_INVALID_ARGS); in otPlatEntropyGet()
Duart.c149 otEXPECT_ACTION(sTransmitBuffer == NULL, error = OT_ERROR_BUSY); in otPlatUartSend()