Herzog Library 00.00.01
rel_libdev.herzog.00.00.01.10606
|
Go to the source code of this file.
Data Structures | |
struct | TX_Config_t |
struct | TX_Device_t |
A structure to represent TX device. More... | |
Macros | |
#define | TX_BUFF_SIZE 128 |
Typedefs | |
typedef void(* | tx_cb_func_t) (TX_Device_t *dev) |
Functions | |
int32_t | TX_devInit (TX_Device_t *dev, TX_Config_t *cfg) |
Initialize TX device. More... | |
TX_Device_t * | TX_devRequest (void) |
Request a TX device. More... | |
int32_t | TX_devIsBusy (TX_Device_t *dev) |
Check if TX device busy. More... | |
int32_t | TX_devSendData (TX_Device_t *dev, uint8_t *data, uint32_t len) |
Send data to TX device. More... | |
int32_t | TX_devStop (TX_Device_t *dev) |
Stop transmission. More... | |
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... | |
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 TX_BUFF_SIZE 128 |
typedef void(* tx_cb_func_t) (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_devIsBusy | ( | TX_Device_t * | dev | ) |
Check if TX device busy.
dev | Pointer to TX Device 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 |