PAN1080 Peripheral API
pan_phy.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2021 Panchip Technology Corp. All rights reserved.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
14#ifndef __PRI_RHY_H__
15#define __PRI_RHY_H__
16
22#ifdef __cplusplus
23extern "C"
24{
25#endif
26
31{
33 LE_1M = 0x01,
34 LE_2M = 0x02,
36 LE_CODED = 0x04
37};
44{
54void PHY_reset(void);
55
61void PHY_SetChConfig(uint8_t chan);
62
67void PHY_init(void);
68
74void PHY_SetTrxSeq(enum tx_rx_phy phy);
75
82uint8_t phy_set_time_cfg(uint8_t phy, uint8_t tx1rx0);
83
84/* filter_start: unnormalised driver,used for 2.3G or 2.5G */
91bool PHY_SetExternChannel(uint16_t rf_channel, uint8_t calibrate);
92/* filter_end: unnormalised driver,used for 2.3G or 2.5G */
93
99
113uint32_t PHY_WriteCfgFifoBatch(const uint32_t *command, const uint32_t cmd_len, uint32_t *ptr_rsp_value);
114
117#ifdef __cplusplus
118}
119#endif
120
121#endif /* __PRI_RHY_H__ */
enum llhw_phy_strt_stp_phy llhw_phy_strt_stp_phy_e
llhw_phy_strt_stp_phy
Definition: pan_phy.h:44
@ LLHWC_PHY_STOP
Definition: pan_phy.h:46
@ LLHWC_PHY_START
Definition: pan_phy.h:45
tx_rx_phy
Definition: pan_phy.h:31
@ LE_2M
Definition: pan_phy.h:34
@ LE_1M
Definition: pan_phy.h:33
@ LE_NO_CHANGE
Definition: pan_phy.h:32
@ LE_CODED_S8
Definition: pan_phy.h:35
@ LE_CODED
Definition: pan_phy.h:36
uint32_t PHY_WriteCfgFifoBatch(const uint32_t *command, const uint32_t cmd_len, uint32_t *ptr_rsp_value)
Write fifo batch config .
void PHY_SetChConfig(uint8_t chan)
Configures the channel.
bool PHY_SetExternChannel(uint16_t rf_channel, uint8_t calibrate)
Configures the Low Speed AHB clock (HCLK).
void PHY_strt_stp(llhw_phy_strt_stp_phy_e phy_state)
Start or stop phy action.
void PHY_ResetChannel(void)
Reset channel config.
void PHY_SetTrxSeq(enum tx_rx_phy phy)
Gonfigures the send and receive sequence.
void PHY_init(void)
Phy init.
void PHY_reset(void)
Reset phy.
uint8_t phy_set_time_cfg(uint8_t phy, uint8_t tx1rx0)
Gonfigures the send and receive time.