HPM SDK
HPMicro Software Development Kit
hpm_jl1111.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2024 HPMicro
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  *
6  */
7 
8 #ifndef HPM_JL1111_H
9 #define HPM_JL1111_H
10 
11 /*---------------------------------------------------------------------
12  * Includes
13  *---------------------------------------------------------------------
14  */
15 #include "hpm_enet_phy.h"
16 #include "hpm_common.h"
17 #include "hpm_enet_regs.h"
18 /*---------------------------------------------------------------------
19  * Macro Const Definitions
20  *---------------------------------------------------------------------
21  */
22 #ifndef JL1111_ADDR
23 #define JL1111_ADDR (0U)
24 #endif
25 
26 #define JL1111_ID1 (0x937CU)
27 #define JL1111_ID2 (0x10U)
28 
29 /*---------------------------------------------------------------------
30  * Typedef Struct Declarations
31  *---------------------------------------------------------------------
32  */
33 typedef struct {
34  bool loopback;
35  uint8_t speed;
37  uint8_t duplex;
39 
40 #if defined(__cplusplus)
41 extern "C" {
42 #endif /* __cplusplus */
43 /*---------------------------------------------------------------------
44  * Exported Functions
45  *---------------------------------------------------------------------
46  */
47 void jl1111_reset(ENET_Type *ptr);
51 
52 #if defined(__cplusplus)
53 }
54 #endif /* __cplusplus */
55 #endif /* HPM_JL1111_H */
void jl1111_basic_mode_default_config(ENET_Type *ptr, jl1111_config_t *config)
Definition: hpm_jl1111.c:51
void jl1111_reset(ENET_Type *ptr)
Definition: hpm_jl1111.c:38
bool jl1111_basic_mode_init(ENET_Type *ptr, jl1111_config_t *config)
Definition: hpm_jl1111.c:65
void jl1111_get_phy_status(ENET_Type *ptr, enet_phy_status_t *status)
Definition: hpm_jl1111.c:92
Definition: hpm_enet_regs.h:12
Definition: hpm_enet_phy.h:34
Definition: hpm_jl1111.h:33
uint8_t duplex
Definition: hpm_jl1111.h:37
uint8_t speed
Definition: hpm_jl1111.h:35
bool auto_negotiation
Definition: hpm_jl1111.h:36
bool loopback
Definition: hpm_jl1111.h:34