Zephyr API Documentation 4.1.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
basic.c File Reference
#include <stdint.h>
#include <zephyr/kernel.h>
#include <zephyr/ztest.h>
#include <zephyr/random/random.h>

Functions

 ZTEST_SUITE (k_pipe_basic, NULL, NULL, NULL, NULL, NULL)
 
static void mkrandom (uint8_t *buffer, size_t size)
 
 K_PIPE_DEFINE (test_define, 256, 4)
 
void test_init (void)
 
void test_write_read_one (void)
 
void test_write_read_multiple (void)
 
void test_write_full (void)
 
void test_read_empty (void)
 
void test_read_write_full (void)
 
void test_read_write_wrapp_around (void)
 
void test_reset (void)
 
void test_close (void)
 

Variables

static struct k_pipe pipe
 

Function Documentation

◆ K_PIPE_DEFINE()

K_PIPE_DEFINE ( test_define ,
256 ,
4  )

◆ mkrandom()

static void mkrandom ( uint8_t * buffer,
size_t size )
static

◆ test_close()

void test_close ( void )

◆ test_init()

void test_init ( void )

◆ test_read_empty()

void test_read_empty ( void )

◆ test_read_write_full()

void test_read_write_full ( void )

◆ test_read_write_wrapp_around()

void test_read_write_wrapp_around ( void )

◆ test_reset()

void test_reset ( void )

◆ test_write_full()

void test_write_full ( void )

◆ test_write_read_multiple()

void test_write_read_multiple ( void )

◆ test_write_read_one()

void test_write_read_one ( void )

◆ ZTEST_SUITE()

ZTEST_SUITE ( k_pipe_basic ,
NULL ,
NULL ,
NULL ,
NULL ,
NULL  )

Variable Documentation

◆ pipe

struct k_pipe pipe
static