Netcruzer Library API  V2.03
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Groups Pages
SER_CONFIG Struct Reference

#include <nz_serDataPorts.h>

Data Fields

BYTE flags
 Currently only gives "Serial Data Port" type, is a SER_BUFTYPE_xx define.
 
BYTE strId
 Buffer string ID, if buffer has a name.
 
BYTE txType
 Tx buffer type and flags, see description on top for details.
 
BYTE rxType
 Rx buffer type and flags, a CIRBUF_TYPE_xxx constant.
 
WORD txSize
 TX Circular Buffer size. Actual usable size is 1 less. For "Power of 2" buffers, this must be power of 2 value, like 4,8,16,32....
 
WORD rxSize
 RX Circular Buffer size. Actual usable size is 1 less. For "Power of 2" buffers, this must be power of 2 value, like 4,8,16,32....
 

Detailed Description

"Serial Data Port" Config. Each "Serial Data Port" consists of a TX and RX "Circular Buffer". Ensure all WORDs and DWORDs are on 16-bit boundaries, must be done seeing that this struct can be located in internal FLASH!

The txType and rxType variables gives the type of the TX and RX "Circular Buffers". It is an OR'ed combination of CIRBUF_TYPE_XXX and CIRBUF_FORMAT_XXX defines.

  • Bit 0-1 = CIRBUF.flagTF.type = CIRBUF_TYPE_XXX define
  • Bit 2-4 = CIRBUF.flagTF.format = CIRBUF_FORMAT_XXX define

The documentation for this struct was generated from the following file: