Classes | Macros | Typedefs | Functions
serial_manager.c File Reference
#include "fsl_common.h"
#include <string.h>
#include "serial_manager.h"
#include "serial_port_internal.h"
Include dependency graph for serial_manager.c:

Go to the source code of this file.

Classes

struct  _serial_manager_handle
 
struct  _serial_manager_send_handle
 

Macros

#define SERIAL_EVENT_DATA_RECEIVED   (1U << 0)
 
#define SERIAL_EVENT_DATA_SENT   (1U << 1)
 
#define SERIAL_MANAGER_READ_TAG   0xBBAA5244U
 
#define SERIAL_MANAGER_WRITE_TAG   0xAABB5754U
 

Typedefs

typedef struct _serial_manager_handle serial_manager_handle_t
 
typedef serial_manager_write_handle_t serial_manager_read_handle_t
 
typedef struct _serial_manager_send_handle serial_manager_write_handle_t
 

Functions

serial_manager_status_t SerialManager_CloseReadHandle (serial_read_handle_t readHandle)
 Closes a reading for the serial manager module. More...
 
serial_manager_status_t SerialManager_CloseWriteHandle (serial_write_handle_t writeHandle)
 Closes a writing handle for the serial manager module. More...
 
serial_manager_status_t SerialManager_Deinit (serial_handle_t serialHandle)
 De-initializes the serial manager module instance. More...
 
serial_manager_status_t SerialManager_EnterLowpower (serial_handle_t serialHandle)
 Prepares to enter low power consumption. More...
 
serial_manager_status_t SerialManager_ExitLowpower (serial_handle_t serialHandle)
 Restores from low power consumption. More...
 
serial_manager_status_t SerialManager_Init (serial_handle_t serialHandle, serial_manager_config_t *config)
 Initializes a serial manager module with the serial manager handle and the user configuration structure. More...
 
serial_manager_status_t SerialManager_OpenReadHandle (serial_handle_t serialHandle, serial_read_handle_t readHandle)
 Opens a reading handle for the serial manager module. More...
 
serial_manager_status_t SerialManager_OpenWriteHandle (serial_handle_t serialHandle, serial_write_handle_t writeHandle)
 Opens a writing handle for the serial manager module. More...
 
static serial_manager_status_t SerialManager_Read (serial_read_handle_t readHandle, uint8_t *buffer, uint32_t length)
 
serial_manager_status_t SerialManager_ReadBlocking (serial_read_handle_t readHandle, uint8_t *buffer, uint32_t length)
 Reads data with the blocking mode. More...
 
static serial_manager_status_t SerialManager_StartReading (serial_manager_handle_t *handle, serial_manager_read_handle_t *readHandle, uint8_t *buffer, uint32_t length)
 
static serial_manager_status_t SerialManager_StartWriting (serial_manager_handle_t *handle, serial_manager_write_handle_t *writeHandle, uint8_t *buffer, uint32_t length)
 
static serial_manager_status_t SerialManager_Write (serial_write_handle_t writeHandle, uint8_t *buffer, uint32_t length)
 
serial_manager_status_t SerialManager_WriteBlocking (serial_write_handle_t writeHandle, uint8_t *buffer, uint32_t length)
 Transmits data with the blocking mode. More...
 

Macro Definition Documentation

◆ SERIAL_EVENT_DATA_RECEIVED

#define SERIAL_EVENT_DATA_RECEIVED   (1U << 0)

Definition at line 49 of file serial_manager.c.

◆ SERIAL_EVENT_DATA_SENT

#define SERIAL_EVENT_DATA_SENT   (1U << 1)

Definition at line 50 of file serial_manager.c.

◆ SERIAL_MANAGER_READ_TAG

#define SERIAL_MANAGER_READ_TAG   0xBBAA5244U

Definition at line 53 of file serial_manager.c.

◆ SERIAL_MANAGER_WRITE_TAG

#define SERIAL_MANAGER_WRITE_TAG   0xAABB5754U

Definition at line 52 of file serial_manager.c.

Typedef Documentation

◆ serial_manager_handle_t

◆ serial_manager_read_handle_t

Definition at line 88 of file serial_manager.c.

◆ serial_manager_write_handle_t

Function Documentation

◆ SerialManager_Read()

static serial_manager_status_t SerialManager_Read ( serial_read_handle_t  readHandle,
uint8_t *  buffer,
uint32_t  length 
)
static

Definition at line 805 of file serial_manager.c.

◆ SerialManager_StartReading()

static serial_manager_status_t SerialManager_StartReading ( serial_manager_handle_t handle,
serial_manager_read_handle_t readHandle,
uint8_t *  buffer,
uint32_t  length 
)
static

Definition at line 308 of file serial_manager.c.

◆ SerialManager_StartWriting()

static serial_manager_status_t SerialManager_StartWriting ( serial_manager_handle_t handle,
serial_manager_write_handle_t writeHandle,
uint8_t *  buffer,
uint32_t  length 
)
static

Definition at line 267 of file serial_manager.c.

◆ SerialManager_Write()

static serial_manager_status_t SerialManager_Write ( serial_write_handle_t  writeHandle,
uint8_t *  buffer,
uint32_t  length 
)
static

Definition at line 788 of file serial_manager.c.



picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:15:00