Herzog Library 00.00.01  rel_libdev.herzog.00.00.01.10606
Enumerations | Functions
rf_codec.h File Reference
#include "stdint.h"

Go to the source code of this file.

Enumerations

enum  DCM_FMT_t { DCM_FMT_NONE, DCM_FMT_3BIT, DCM_FMT_4BIT }
 The enum for the duty-cycle modulation format. More...
 

Functions

int32_t DCM_Encoder (DCM_FMT_t mode, uint8_t *src, uint8_t *des, uint8_t len)
 Encode data. More...
 

Detailed Description

This file is proprietary to Indie Semiconductor. All rights reserved. Reproduction or distribution, in whole or in part, is forbidden except by express written permission of Indie Semiconductor.

Enumeration Type Documentation

enum DCM_FMT_t

The enum for the duty-cycle modulation format.

Enumerator
DCM_FMT_NONE 
DCM_FMT_3BIT 

2/3 , 1/3 format, 0 bit for 110 and 1 bit for 100

DCM_FMT_4BIT 

3/4 , 1/4 format, 0 bit for 1110 and 1 bit for 1000

Function Documentation

int32_t DCM_Encoder ( DCM_FMT_t  mode,
uint8_t *  src,
uint8_t *  des,
uint8_t  len 
)

Encode data.

Parameters
modeThe format for the data to be encoded.
srcThe pointer to the data to be encoded.
desThe pointer to the decoded data to be saved.
lenThe length bytes of the source data in number of bytes.
Returns
0 for success or error code upon a failure. The function doesn't do memory boundary check, the caller needs to ensure the both src and des pointing to sufficient memory space.