|
Herzog Library 00.00.01
rel_libdev.herzog.00.00.01.10606
|
#include <stdint.h>#include <string.h>#include "tx_device.h"#include "rf_codec.h"#include "errno.h"Data Structures | |
| struct | TX_Dev_State_t |
| A structure to represent TX device state. More... | |
Macros | |
| #define | BURST_BIT_SIZE_DFLT 160 |
| #define | WAIT_BIT_SIZE_DLFT 63 |
| #define | TX_PREAMBLE 0x55 |
| #define | TX_START 0x08 |
| #define | TX_STOP 0x80 |
| #define | TX_MSG_OVERHEAD 8 /* the size for preamble, start, stop etc.*/ |
Functions | |
| int32_t | tx_format_data (DCM_FMT_t fmt, uint8_t *data, uint32_t len) |
| int32_t | tx_init (TX_Config_t *cfg) |
| static void | tx_load_data (void) |
| static int32_t | tx_send_data (uint8_t *data, uint32_t len) |
| int32_t | tx_stop (void) |
| static int32_t | tx_is_busy (void) |
| TX_Device_t * | TX_devRequest (void) |
| Request a TX device. More... | |
| int32_t | TX_devInit (TX_Device_t *dev, TX_Config_t *cfg) |
| Initialize TX device. More... | |
| int32_t | TX_devSendData (TX_Device_t *dev, uint8_t *data, uint32_t size) |
| Send data to TX device. More... | |
| int32_t | TX_devStop (TX_Device_t *dev) |
| Stop transmission. More... | |
| int32_t | TX_devDataPendingTX (TX_Device_t *dev) |
| int32_t | TX_devRegisterCallback (TX_Device_t *dev, void *cb) |
| Register a call back function to TX device driver. More... | |
| int32_t | TX_devUnregisterCallback (TX_Device_t *dev) |
| Un-Register a call back function to TX device driver. More... | |
| void | TX_DONE_Handler (void) |
| void | TX_RELOAD_Handler (void) |
Variables | |
| TX_Dev_State_t | TX_State |
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.
| #define BURST_BIT_SIZE_DFLT 160 |
| #define TX_MSG_OVERHEAD 8 /* the size for preamble, start, stop etc.*/ |
| #define TX_PREAMBLE 0x55 |
| #define TX_START 0x08 |
| #define TX_STOP 0x80 |
| #define WAIT_BIT_SIZE_DLFT 63 |
| int32_t TX_devDataPendingTX | ( | TX_Device_t * | dev | ) |
| int32_t TX_devInit | ( | TX_Device_t * | dev, |
| TX_Config_t * | cfg | ||
| ) |
Initialize TX device.
| dev | Pointer to TX Device structure |
| cfg | Pointer to TX config data structure |
| int32_t TX_devRegisterCallback | ( | TX_Device_t * | dev, |
| void * | cb | ||
| ) |
Register a call back function to TX device driver.
| dev | Pointer to TX Device structure |
| cb | The pointer to the call back function. |
| TX_Device_t* TX_devRequest | ( | void | ) |
Request a TX device.
| int32_t TX_devSendData | ( | TX_Device_t * | dev, |
| uint8_t * | data, | ||
| uint32_t | len | ||
| ) |
Send data to TX device.
| dev | Pointer to TX Device structure. |
| data | Pointer to the data memory to be sent. |
| len | The size of the data memory. |
| int32_t TX_devStop | ( | TX_Device_t * | dev | ) |
Stop transmission.
| dev | Pointer to TX Device structure. |
| int32_t TX_devUnregisterCallback | ( | TX_Device_t * | dev | ) |
Un-Register a call back function to TX device driver.
| dev | Pointer to TX Device structure |
| void TX_DONE_Handler | ( | void | ) |
| int32_t tx_format_data | ( | DCM_FMT_t | fmt, |
| uint8_t * | data, | ||
| uint32_t | len | ||
| ) |
| int32_t tx_init | ( | TX_Config_t * | cfg | ) |
|
static |
|
static |
| void TX_RELOAD_Handler | ( | void | ) |
|
static |
| int32_t tx_stop | ( | void | ) |
| TX_Dev_State_t TX_State |
1.8.9.1