MSP430™CapTIvateSoftwareLibraryAPIGuide  1_70_00_03
CAPT_PingPongBuffer.h
Go to the documentation of this file.
1 //*****************************************************************************
2 // CAPT_PingPongBuffer.h
3 //
5 //
8 //
14 //
17 //
18 //*****************************************************************************
19 //*****************************************************************************
22 //*****************************************************************************
23 #ifndef PINGPONGBUFFER_H_
24 #define PINGPONGBUFFER_H_
25 
26 #ifndef S_SPLINT_S
27 #include <stdbool.h>
28 #include <stdint.h>
29 #endif
30 
31 //*****************************************************************************
38 //
39 //*****************************************************************************
40 typedef struct
41 {
42  //
44  //
45  uint8_t *pEditBuffer;
46 
47  //
49  //
50  uint8_t *pTransmitBuffer;
52 
53 //
54 // Ping Pong Buffer APIs
55 //
56 
57 //*****************************************************************************
58 //
61 //
67 //
70 //
71 //*****************************************************************************
72 extern bool CAPT_initPingPongBuffer(tPingPongBuffer *PPBuffer,
73  uint8_t *pBuffer1, uint8_t *pBuffer2);
74 
75 //*****************************************************************************
76 //
78 //
80 //
83 //
84 //*****************************************************************************
85 extern bool CAPT_togglePingPongBuffer(tPingPongBuffer *PPBuffer);
86 
87 #endif /* PINGPONGBUFFER_H_ */
88 //*****************************************************************************
91 //*****************************************************************************
uint8_t * pTransmitBuffer
*pTransmitBuffer is a pointer to the buffer that can be read from.
Definition: CAPT_PingPongBuffer.h:50
uint8_t * pEditBuffer
*pEditBuffer is a pointer to the buffer that can be written to.
Definition: CAPT_PingPongBuffer.h:45
Definition: CAPT_PingPongBuffer.h:40
bool CAPT_initPingPongBuffer(tPingPongBuffer *PPBuffer, uint8_t *pBuffer1, uint8_t *pBuffer2)
bool CAPT_togglePingPongBuffer(tPingPongBuffer *PPBuffer)
This functions swaps the edit buffer with the transmit buffer.
© Copyright 1995-2018, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale