Skip to content

Commit 6ffd41a

Browse files
Kyle Kearneyromanjoe
authored andcommitted
Improve psoc6csp doxygen comments
1 parent 54da4ea commit 6ffd41a

33 files changed

+340
-963
lines changed

targets/TARGET_Cypress/TARGET_PSOC6/psoc6csp/abstraction/resource/include/cyabs_resource.h

Lines changed: 13 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,6 @@
2222
* limitations under the License.
2323
*******************************************************************************/
2424

25-
/**
26-
* \addtogroup group_abstraction_resource Resource abstraction
27-
* \ingroup group_abstraction
28-
* \{
29-
* Basic abstraction layer for dealing with resources.
30-
*
31-
* \defgroup group_abstraction_resource_macros Macros
32-
* \defgroup group_abstraction_resource_enums Enums
33-
* \defgroup group_abstraction_resource_data_structures Data Structures
34-
* \defgroup group_abstraction_resource_functions Functions
35-
*/
36-
3725
#pragma once
3826

3927
#include <stdint.h>
@@ -44,10 +32,12 @@
4432
extern "C" {
4533
#endif
4634

47-
/**
48-
* \addtogroup group_abstraction_resource_macros
49-
* \{
50-
*/
35+
/**
36+
* \addtogroup group_abstraction_resource Resource Abstraction
37+
* \{
38+
*
39+
* Basic abstraction layer for dealing with resources.
40+
*/
5141

5242
/** Error code for when the specified resource operation is not valid. */
5343
#define CY_RSLT_RSC_ERROR_UNSUPPORTED (CY_RSLT_CREATE(CY_RSLT_TYPE_ERROR, CY_RSLT_MODULE_ABSTRACTION_RESOURCE, 0))
@@ -62,13 +52,6 @@ extern "C" {
6252
/** Error code for when the specified resource can not be read. */
6353
#define CY_RSLT_RSC_ERROR_READ (CY_RSLT_CREATE(CY_RSLT_TYPE_ERROR, CY_RSLT_MODULE_ABSTRACTION_RESOURCE, 5))
6454

65-
/** \} group_abstraction_resource_macros */
66-
67-
68-
/**
69-
* \addtogroup group_abstraction_resource_enums
70-
* \{
71-
*/
7255
/** Different types of memory that the resources can be stored in. */
7356
typedef enum
7457
{
@@ -77,15 +60,7 @@ typedef enum
7760
CY_RESOURCE_IN_EXTERNAL_STORAGE /**< resource location in external storage */
7861
} cy_resource_location_t;
7962

80-
/** \} group_abstraction_resource_enums */
81-
82-
83-
/**
84-
* \addtogroup group_abstraction_resource_data_structures
85-
* \{
86-
*/
87-
88-
/** Filesystem handle */
63+
/** Filesystem handle */
8964
typedef struct
9065
{
9166
unsigned long offset; /**< Offset to the start of the resource */
@@ -99,19 +74,12 @@ typedef struct
9974
unsigned long size; /**< resource size */
10075
union
10176
{
102-
cy_filesystem_resource_handle_t fs; /** < filesystem resource handle */
103-
const uint8_t* mem_data; /** < memory resource handle */
104-
void* external_storage_context; /** < external storage context */
105-
} val;
77+
cy_filesystem_resource_handle_t fs; /**< handle for resource in filesystem */
78+
const uint8_t* mem_data; /**< handle for resource in internal memory */
79+
void* external_storage_context; /**< handle for resource in external storage */
80+
} val; /**< low-level handle (type varies depending on resource storage location) */
10681
} cy_resource_handle_t;
10782

108-
/** \} group_abstraction_resource_data_structures */
109-
110-
/**
111-
* \addtogroup group_abstraction_resource_functions
112-
* \{
113-
*/
114-
11583
/**
11684
* \brief return the block size for the resource
11785
* \param handle handle to a resource
@@ -147,16 +115,15 @@ cy_rslt_t cy_resource_get_block_count(const cy_resource_handle_t *handle, uint32
147115
cy_rslt_t cy_resource_read(const cy_resource_handle_t *handle, uint32_t blockno, uint8_t **buffer, uint32_t *size);
148116

149117
/**
150-
* \brief optimized version of read for resources stored in memory (\see CY_RESOURCE_IN_MEMORY)
118+
* \brief optimized version of read for resources stored in memory
119+
* \see CY_RESOURCE_IN_MEMORY
151120
* \param handle the handle to the resource
152121
* \param buffer pointer to receive buffer address from resource. This does NOT need to be freed.
153122
* \param size location to receive the size of the block read
154123
* \returns CY_RSLT_SUCCESS if data read, otherwise an error
155124
*/
156125
cy_rslt_t cy_resource_readonly_memory(const cy_resource_handle_t *handle, const uint8_t **buffer, uint32_t *size);
157126

158-
/** \} group_abstraction_resource_functions */
159-
160127
#if defined(__cplusplus)
161128
}
162129
#endif

0 commit comments

Comments
 (0)