<gh_stars>0
"""
Module: block_info.py

Description:
   Interface for the block info structure

Copyright (c) 2012 JDSU.  All rights reserved.

$Log: block_info.py $
Revision 5 2012/09/29 06:00:56 +0800 phi58351 deleted(id=32940)
/src/block_info.py

Revision 3 2012/05/14 15:10:17 -0600 hen55467 /MassTransit/MT1.10.100_Tip/Integration/Thomas
due to new queue and callback logic, data and statistics streams have been forced to be done separately

Revision 2 2012/05/10 15:23:25 -0600 hen55467 /MassTransit/MT1.10.100_Tip/Integration/Thomas
Bug fixes for software acquisition mode + discard data mode

Revision 1 2012/05/08 16:29:44 -0600 hen55467 /MassTransit/MT1.10.100_Tip/Integration/Thomas
Needed for callback mode of the driver


"""

block_info_version = '$Revision: 5 $'

import ctypes
#import fromh

class BLOCK_INFO(ctypes.Structure):
    pass

BLOCK_INFO._fields_ = [("m_nByteLength",   ctypes.c_uint32),
                       ("m_nFrameNumber",  ctypes.c_uint32),
                       ("m_nFrameCount",   ctypes.c_uint32),
                       ("m_pData", ctypes.POINTER(ctypes.c_uint8)),
                       ("m_bBufferSpan", ctypes.c_bool)]

BLOCK_INFO_PTR = ctypes.POINTER(BLOCK_INFO)

QTYPE_DATA = 0
QTYPE_STATISTICS = 1

work_q_empty_proto = ctypes.CFUNCTYPE(ctypes.c_bool, ctypes.c_uint16, ctypes.c_uint16)
work_q_front_proto = ctypes.CFUNCTYPE(ctypes.c_uint64, ctypes.c_uint16, ctypes.c_uint16)
work_q_pop_front_proto = ctypes.CFUNCTYPE(None, ctypes.c_uint16, ctypes.c_uint16)
free_q_push_back_proto = ctypes.CFUNCTYPE(None, ctypes.c_uint16, ctypes.POINTER(BLOCK_INFO), ctypes.c_uint16)


"""
Module: block_info.py

Description:
   Interface for the block info structure

Copyright (c) 2012 JDSU.  All rights reserved.

$Log: block_info.py $
Revision 5 2012/09/29 06:00:56 +0800 phi58351 deleted(id=32940)
/src/block_info.py

Revision 3 2012/05/14 15:10:17 -0600 hen55467 /MassTransit/MT1.10.100_Tip/Integration/Thomas
due to new queue and callback logic, data and statistics streams have been forced to be done separately

Revision 2 2012/05/10 15:23:25 -0600 hen55467 /MassTransit/MT1.10.100_Tip/Integration/Thomas
Bug fixes for software acquisition mode + discard data mode

Revision 1 2012/05/08 16:29:44 -0600 hen55467 /MassTransit/MT1.10.100_Tip/Integration/Thomas
Needed for callback mode of the driver


"""

block_info_version = '$Revision: 5 $'

import ctypes
#import fromh

class BLOCK_INFO(ctypes.Structure):
    pass

BLOCK_INFO._fields_ = [("m_nByteLength",   ctypes.c_uint32),
                       ("m_nFrameNumber",  ctypes.c_uint32),
                       ("m_nFrameCount",   ctypes.c_uint32),
                       ("m_pData", ctypes.POINTER(ctypes.c_uint8)),
                       ("m_bBufferSpan", ctypes.c_bool)]

BLOCK_INFO_PTR = ctypes.POINTER(BLOCK_INFO)

QTYPE_DATA = 0
QTYPE_STATISTICS = 1

work_q_empty_proto = ctypes.CFUNCTYPE(ctypes.c_bool, ctypes.c_uint16, ctypes.c_uint16)
work_q_front_proto = ctypes.CFUNCTYPE(ctypes.c_uint64, ctypes.c_uint16, ctypes.c_uint16)
work_q_pop_front_proto = ctypes.CFUNCTYPE(None, ctypes.c_uint16, ctypes.c_uint16)
free_q_push_back_proto = ctypes.CFUNCTYPE(None, ctypes.c_uint16, ctypes.POINTER(BLOCK_INFO), ctypes.c_uint16)
Module: block_info.py  Description:    Interface for the block info structure  Copyright (c) 2012 JDSU.  All rights reserved.  $Log: block_info.py $ Revision 5 2012/09/29 06:00:56 +0800 phi58351 deleted(id=32940) /src/block_info.py  Revision 3 2012/05/14 15:10:17 -0600 hen55467 /MassTransit/MT1.10.100_Tip/Integration/Thomas due to new queue and callback logic, data and statistics streams have been forced to be done separately  Revision 2 2012/05/10 15:23:25 -0600 hen55467 /MassTransit/MT1.10.100_Tip/Integration/Thomas Bug fixes for software acquisition mode + discard data mode  Revision 1 2012/05/08 16:29:44 -0600 hen55467 /MassTransit/MT1.10.100_Tip/Integration/Thomas Needed for callback mode of the driver #import fromh